mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check for file validness before acquiring its stampt
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user