Fix the wrong condition of IfStatement.

This commit is contained in:
Kui LIU
2017-07-31 21:20:50 +02:00
parent 4febcdbb23
commit cd1bbcfd84
@@ -77,7 +77,7 @@ public class HunkParser {
SimplifyTree abstractIdentifier = new SimplifyTree();
abstractIdentifier.abstractTree(hunkActionSet);
SimpleTree simpleT = hunkActionSet.getSimpleTree();
if (simpleTree == null) { // Failed to get the simple tree for INS actions.
if (simpleT == null) { // Failed to get the simple tree for INS actions.
continue;
}
children.add(simpleT);
@@ -104,6 +104,7 @@ public class HunkParser {
if (endLine2 < hunkActionSet.getFixEndLineNum()) endLine2 = hunkActionSet.getFixEndLineNum();
}
}
if (children.size() == 0) continue;
simpleTree.setChildren(children);
simpleTree.setParent(null);