Prevent NullPointerException

This commit is contained in:
Rawi01 authored and Roel Spilker committed 2020-06-25 21:36:19 +02:00
1 parent 2917a8c5e1
commit 3ffef5d23b
1 file changed
+1
+1
View File
@@ -318,6 +318,7 @@ public class EclipseAST extends AST<EclipseAST, EclipseNode, ASTNode> {
Field f = EcjReflectionCheck.typeReferenceAnnotations;
if (f == null) return null;
annss = (Annotation[][]) f.get(tr);
if (annss == null) return null;
return annss[annss.length - 1];
} catch (Throwable t) {
return null;