propagate AssertionError during stub processing to the caller

This commit is contained in:
Maxim.Mossienko
2017-07-19 15:10:19 +02:00
parent 80744848c8
commit f868478cfc
@@ -365,8 +365,11 @@ public class StubIndexImpl extends StubIndex implements PersistentStateComponent
FileBasedIndexImpl.enableUpToDateCheckForCurrentThread();
}
}
catch (StorageException | AssertionError e) {
catch (StorageException e) {
forceRebuild(e);
} catch (AssertionError e) {
forceRebuild(e);
throw e;
}
catch (RuntimeException e) {
final Throwable cause = FileBasedIndexImpl.getCauseToRebuildIndex(e);