mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE
This commit is contained in:
@@ -112,6 +112,7 @@ public class TranslatingCompilerFilesMonitor implements ApplicationComponent {
|
||||
public TIntObjectHashMap<Pair<Integer, Integer>> createValue(Integer key) {
|
||||
TIntObjectHashMap<Pair<Integer, Integer>> map = null;
|
||||
try {
|
||||
ensureOutputStorageInitialized();
|
||||
map = myOutputRootsStorage.get(key);
|
||||
}
|
||||
catch (IOException e) {
|
||||
@@ -385,6 +386,14 @@ public class TranslatingCompilerFilesMonitor implements ApplicationComponent {
|
||||
myOutputsToDelete.clear();
|
||||
FileUtil.delete(file);
|
||||
}
|
||||
|
||||
ensureOutputStorageInitialized();
|
||||
}
|
||||
|
||||
private void ensureOutputStorageInitialized() {
|
||||
if (myOutputRootsStorage != null) {
|
||||
return;
|
||||
}
|
||||
final File rootsFile = new File(CompilerPaths.getCompilerSystemDirectory(), OUTPUT_ROOTS_FILENAME);
|
||||
try {
|
||||
initOutputRootsFile(rootsFile);
|
||||
|
||||
Reference in New Issue
Block a user