diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-06-21 13:45:32 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-06-25 21:36:19 +0200 |
commit | 3ffef5d23be17e9bffca30936d43bca852feaa93 (patch) | |
tree | 933313d06c2cc1d0941e3f14bf7de4ee4f436943 /src/core/lombok | |
parent | 2917a8c5e15d79aebfb461fa7db8d54665afd0ae (diff) | |
download | lombok-3ffef5d23be17e9bffca30936d43bca852feaa93.tar.gz lombok-3ffef5d23be17e9bffca30936d43bca852feaa93.tar.bz2 lombok-3ffef5d23be17e9bffca30936d43bca852feaa93.zip |
Prevent NullPointerException
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/eclipse/EclipseAST.java | 1 |
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; |