[fixes #3043] Add null check for end positions

This commit is contained in:
Rawi01 authored and Roel Spilker committed 2021-12-12 02:24:58 +01:00
1 parent 41a90527d3
commit 5155060ddf
1 file changed
+1
+1
View File
@@ -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);