Errored out project should have empty classpath

This commit is contained in:
BoykoAlex
2017-11-20 18:15:30 -05:00
parent 08c1cd33ef
commit 1014e90ed3
2 changed files with 8 additions and 2 deletions

View File

@@ -205,6 +205,9 @@ public class DelegatingCachedClasspath<T extends IClasspath> implements IClasspa
return false;
} catch (Exception e) {
cachedData.set(new ClasspathData(null, Collections.emptySet(), Collections.emptySet(), null));
if (cacheFile != null && cacheFile.exists()) {
cacheFile.delete();
}
throw e;
}
}