mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 12:15:00 +00:00
Prevent NullPointerException
This commit is contained in:
1 parent
2917a8c5e1
commit
3ffef5d23b
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user