Do not null initialize instance fields
@@ -79,7 +79,8 @@ public class J2clEqualitySameRewriterPass extends AbstractPeepholeOptimization {
}
private static boolean isEqualitySameCall(Node node) {
- return node.isCall() && isEqualitySameMethodName(node.getFirstChild());
+ return node.isCall() && isEqualitySameMethodName(node.getFirstChild())
+ && node.getChildCount() == 3;
}
private static boolean isEqualitySameMethodName(Node fnName) {
