From f868478cfcbfd94c93f20fd3dd4492e58b9d6dde Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Wed, 19 Jul 2017 14:42:26 +0200 Subject: [PATCH] propagate AssertionError during stub processing to the caller --- .../lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java b/platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java index 99b3febbe832..87529da8257b 100644 --- a/platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java +++ b/platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java @@ -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);