From 55ee980f0ce26ada3855f964f59d7e260ef29ae3 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Mon, 20 Jan 2014 17:42:27 +0100 Subject: [PATCH] IDEA-118211 - also avoid double dispose --- .../src/com/intellij/util/indexing/FileBasedIndexImpl.java | 1 + 1 file changed, 1 insertion(+) 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 5538724795f6..bf687a8ff3e9 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java @@ -2470,6 +2470,7 @@ public class FileBasedIndexImpl extends FileBasedIndex { @Override public void removeIndexableSet(@NotNull IndexableFileSet set) { + if (!myIndexableSetToProjectMap.containsKey(set)) return; // avoid second unfiltered forceUpdate myChangedFilesCollector.forceUpdate(myIndexableSetToProjectMap.get(set), null, null, true); IndexingStamp.flushCaches(); myIndexableSets.remove(set);