mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javac ast indices: prevent npe while recompilation of single file
This commit is contained in:
@@ -32,7 +32,7 @@ public class BackwardReferenceRegistrar implements JavacFileReferencesRegistrar
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return BackwardReferenceIndexWriter.isEnabled();
|
||||
return BackwardReferenceIndexWriter.isEnabled() && BackwardReferenceIndexWriter.getInstance() != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user