Skip to content

Commit

Permalink
Fix issue #259 (#260)
Browse files Browse the repository at this point in the history
Handle null value of spoon.reflect.code.CtInvocation.getTarget() when Spoon fails to parse input accurately.
  • Loading branch information
Sin-Mim authored Mar 7, 2024
1 parent a679109 commit dfc0ca7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ public <T> void visitCtBinaryOperator(CtBinaryOperator<T> operator) {

for (CtInvocation invocation : invocationssInStatement) {

if(!invocation.getTarget().toString().isEmpty()) {
if(invocation.getTarget() != null && !invocation.getTarget().toString().isEmpty()) {
continue;
}

Expand Down

0 comments on commit dfc0ca7

Please sign in to comment.