From ee0171c290df2ebfe505b7c0ac6129ab3cbd57c2 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Mon, 21 Nov 2016 13:58:17 +0100 Subject: [PATCH] EA-91889 - IVFAE: PersistentFSImpl.getFileId --- .../src/com/intellij/util/indexing/FileBasedIndexImpl.java | 2 +- 1 file changed, 1 insertion(+), 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 73dba87e302f..1e92a81016b5 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java @@ -1755,7 +1755,7 @@ public class FileBasedIndexImpl extends FileBasedIndex { clearUpToDateStateForPsiIndicesOfUnsavedDocuments(file); // the file is for sure not a dir and it was previously indexed by at least one index - if (!isTooLarge(file)) myChangedFilesCollector.scheduleForUpdate(file); + if (file.isValid() && !isTooLarge(file)) myChangedFilesCollector.scheduleForUpdate(file); } } else if (!fileIndexedStatesToUpdate.isEmpty()) { // file was removed, its data should be (lazily) wiped for every index