Skip to content

Commit

Permalink
Fix for issue #849
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jan 10, 2025
1 parent 0437482 commit da6f7c9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8301,7 +8301,9 @@ else if(isIfBranch(grandParent, grandParent.getParent()) && !hasElseBranch(grand
while(parent != null && parent.getLocationInfo().getCodeElementType().equals(CodeElementType.BLOCK)) {
parent = parent.getParent();
}
grandParents.add(parent);
if(parent != null) {
grandParents.add(parent);
}
}
if(container1.getBody() != null && grandParents.size() == 1) {
CompositeStatementObject grandParent2 = grandParents.iterator().next();
Expand Down

0 comments on commit da6f7c9

Please sign in to comment.