Skip to content

Commit

Permalink
Avoid NPE in JavacBindingResolver (cont'd)
Browse files Browse the repository at this point in the history
Fix condition
  • Loading branch information
mickaelistria committed Jan 29, 2025
1 parent 76e9c9c commit 4044060
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ && isTypeOfType(expression.type)
if (expr instanceof SuperFieldAccess) {
return this.bindings.getTypeBinding(jcFieldAccess.selected.type);
}
if (jcFieldAccess.type != null || !jcFieldAccess.type.isErroneous()) {
if (jcFieldAccess.type != null && !jcFieldAccess.type.isErroneous()) {
return this.bindings.getTypeBinding(jcFieldAccess.type);
}
if (jcFieldAccess.sym != null) {
Expand Down

0 comments on commit 4044060

Please sign in to comment.