Skip to content

Commit

Permalink
NPE in binding resolver
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed Jan 20, 2025
1 parent e0066d6 commit df930e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ && isTypeOfType(expression.type)
if (jcTree instanceof JCTypeCast jcCast && jcCast.getType() != null) {
return this.bindings.getTypeBinding(jcCast.getType().type);
}
if (jcTree instanceof JCLiteral jcLiteral && jcLiteral.type.isErroneous()) {
if (jcTree instanceof JCLiteral jcLiteral && jcLiteral.type != null && jcLiteral.type.isErroneous()) {
if (jcLiteral.typetag == TypeTag.CLASS) {
return resolveWellKnownType("java.lang.String");
} else if (jcLiteral.typetag == TypeTag.BOT) {
Expand Down

0 comments on commit df930e7

Please sign in to comment.