This commit is contained in:
Eugene Zhuravlev
2009-12-04 13:30:30 +03:00
parent 5954ede771
commit af618cedf2
@@ -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);