We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1c2e75 commit 23f3e25Copy full SHA for 23f3e25
org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacBindingResolver.java
@@ -1301,7 +1301,7 @@ && isTypeOfType(expression.type)
1301
if (jcTree instanceof JCTypeCast jcCast && jcCast.getType() != null) {
1302
return this.bindings.getTypeBinding(jcCast.getType().type);
1303
}
1304
- if (jcTree instanceof JCLiteral jcLiteral && jcLiteral.type.isErroneous()) {
+ if (jcTree instanceof JCLiteral jcLiteral && jcLiteral.type != null && jcLiteral.type.isErroneous()) {
1305
if (jcLiteral.typetag == TypeTag.CLASS) {
1306
return resolveWellKnownType("java.lang.String");
1307
} else if (jcLiteral.typetag == TypeTag.BOT) {
0 commit comments