mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 10:18:46 +00:00
[fixes #3043] Add null check for end positions
This commit is contained in:
1 parent
41a90527d3
commit
5155060ddf
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user