mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
rebuild index on IllegalStateException
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user