From 9c95c5bd7913f094cdc6dab8eb8949eddba04be2 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Mon, 4 Jun 2018 21:50:52 +0200 Subject: [PATCH] Skip event processing to avoid deadlock (IDEA-193172), r=Peter --- .../src/com/intellij/util/indexing/FileBasedIndexImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java index d44dd77fe6fb..a9d10e36df9b 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java @@ -1966,7 +1966,10 @@ public class FileBasedIndexImpl extends FileBasedIndex implements BaseComponent, return myFilesToUpdate.containsKey(Math.abs(getIdMaskingNonIdBasedFile(file))); } - public void ensureUpToDate() { + void ensureUpToDate() { + if (!isUpToDateCheckEnabled()) { + return; + } //assert ApplicationManager.getApplication().isReadAccessAllowed() || ShutDownTracker.isShutdownHookRunning(); waitUntilIndicesAreInitialized();