since IllegalStateException is translated into CorruptedException, its filtering no longer needed

This commit is contained in:
Maxim.Mossienko
2012-02-24 15:06:57 +04:00
parent 56b4f95e01
commit ba5dee0f1d
@@ -1083,7 +1083,7 @@ 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 || cause instanceof IllegalStateException) return cause;
cause instanceof IllegalArgumentException) return cause;
return null;
}