Skip to content

Commit 1c29a2e

Browse files
committed
Fix NPE when typeSymbol is null (recovered)
1 parent 76f8c0d commit 1c29a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ public ITypeBinding getTypeDeclaration() {
14701470
return getErasure();
14711471
}
14721472
// TODO handle wildcard types here? test0114
1473-
return this.typeSymbol.type == this.type
1473+
return this.typeSymbol == null || this.typeSymbol.type == this.type
14741474
? this
14751475
: this.resolver.bindings.getTypeBinding(this.typeSymbol.type, null, this.typeSymbol, true);
14761476
}

0 commit comments

Comments
 (0)