aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-06-21 13:45:32 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-06-25 21:36:19 +0200
commit3ffef5d23be17e9bffca30936d43bca852feaa93 (patch)
tree933313d06c2cc1d0941e3f14bf7de4ee4f436943
parent2917a8c5e15d79aebfb461fa7db8d54665afd0ae (diff)
downloadlombok-3ffef5d23be17e9bffca30936d43bca852feaa93.tar.gz
lombok-3ffef5d23be17e9bffca30936d43bca852feaa93.tar.bz2
lombok-3ffef5d23be17e9bffca30936d43bca852feaa93.zip
Prevent NullPointerException
-rw-r--r--src/core/lombok/eclipse/EclipseAST.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/EclipseAST.java b/src/core/lombok/eclipse/EclipseAST.java
index e724fb50..b45ac72d 100644
--- a/src/core/lombok/eclipse/EclipseAST.java
+++ b/src/core/lombok/eclipse/EclipseAST.java
@@ -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;