diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2021-11-28 12:46:05 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2021-12-12 02:24:58 +0100 |
commit | 5155060ddf48b683a902b9d354d0fd07df7a79a1 (patch) | |
tree | 96d665a5f6b6a7df606cc39ddfd378982080a4de | |
parent | 41a90527d3d8274aafcbd63629b3801c9e58c550 (diff) | |
download | lombok-5155060ddf48b683a902b9d354d0fd07df7a79a1.tar.gz lombok-5155060ddf48b683a902b9d354d0fd07df7a79a1.tar.bz2 lombok-5155060ddf48b683a902b9d354d0fd07df7a79a1.zip |
[fixes #3043] Add null check for end positions
-rw-r--r-- | src/utils/lombok/javac/Javac.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/lombok/javac/Javac.java b/src/utils/lombok/javac/Javac.java index 3fa0fbb5..5a6165b1 100644 --- a/src/utils/lombok/javac/Javac.java +++ b/src/utils/lombok/javac/Javac.java @@ -392,6 +392,7 @@ public class Javac { public static void storeEnd(JCTree tree, int pos, JCCompilationUnit top) { try { Object endPositions = JCCOMPILATIONUNIT_ENDPOSITIONS.get(top); + if (endPositions == null) return; storeEnd.invoke(endPositions, tree, pos); } catch (IllegalAccessException e) { throw sneakyThrow(e); |