Fix the wrong condition of IfStatement.
This commit is contained in:
@@ -77,7 +77,7 @@ public class HunkParser {
|
|||||||
SimplifyTree abstractIdentifier = new SimplifyTree();
|
SimplifyTree abstractIdentifier = new SimplifyTree();
|
||||||
abstractIdentifier.abstractTree(hunkActionSet);
|
abstractIdentifier.abstractTree(hunkActionSet);
|
||||||
SimpleTree simpleT = hunkActionSet.getSimpleTree();
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
children.add(simpleT);
|
children.add(simpleT);
|
||||||
@@ -104,6 +104,7 @@ public class HunkParser {
|
|||||||
if (endLine2 < hunkActionSet.getFixEndLineNum()) endLine2 = hunkActionSet.getFixEndLineNum();
|
if (endLine2 < hunkActionSet.getFixEndLineNum()) endLine2 = hunkActionSet.getFixEndLineNum();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (children.size() == 0) continue;
|
||||||
simpleTree.setChildren(children);
|
simpleTree.setChildren(children);
|
||||||
simpleTree.setParent(null);
|
simpleTree.setParent(null);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user