rebuild index on IllegalStateException

This commit is contained in:
Maxim.Mossienko
2011-11-23 13:21:21 +04:00
parent 35c3898cc9
commit 4d4662fb9e
@@ -932,7 +932,8 @@ public class FileBasedIndex implements ApplicationComponent {
public static @Nullable Throwable getCauseToRebuildIndex(RuntimeException e) {
Throwable cause = e.getCause();
if (cause instanceof StorageException || cause instanceof IOException || cause instanceof IllegalArgumentException) return cause;
if (cause instanceof StorageException || cause instanceof IOException ||
cause instanceof IllegalArgumentException || cause instanceof IllegalStateException) return cause;
return null;
}