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 e3388b013c49..cfb30aed6770 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java @@ -1482,7 +1482,7 @@ public class FileBasedIndexImpl extends FileBasedIndex { try { // if file was scheduled for update due to vfs events then it is present in myFilesToUpdate // in this case we consider that current indexing (out of roots backed CacheUpdater) will cover its content - if (content.getTimeStamp() != file.getTimeStamp()) { + if (file.isValid() && content.getTimeStamp() != file.getTimeStamp()) { content = new com.intellij.ide.caches.FileContent(file); } if (!file.isValid() || isTooLarge(file)) {