dont throw IllegalStateException on index access in dumb mode

GitOrigin-RevId: e6f0c7a732608bba142c3f295563d35986767aad
This commit is contained in:
Dmitry Batkovich
2019-12-04 06:40:40 +00:00
committed by intellij-monorepo-bot
parent 747b08812b
commit 3e751e0af4
@@ -2657,7 +2657,8 @@ public final class FileBasedIndexImpl extends FileBasedIndex {
DumbModeAccessType dumbModeAccessType = getCurrentDumbModeAccessType();
if (dumbModeAccessType == null) {
throw new IllegalStateException("index access is not allowed in dumb mode");
//throw new IllegalStateException("index access is not allowed in dumb mode");
return f -> true;
}
if (dumbModeAccessType == DumbModeAccessType.RAW_INDEX_DATA_ACCEPTABLE) return f -> true;