diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSImpl.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSImpl.java index adef586d8dbc..97b87e1c586d 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSImpl.java @@ -902,6 +902,10 @@ public class PersistentFSImpl extends PersistentFS implements ApplicationCompone myRootsLock.readLock().unlock(); } } + else if (parentId == id) { + LOG.error("Corrupted VFS? id=" + id + " name=" + getName(id)); + return null; + } else { NewVirtualFile parentFile = _findFileById(parentId, cachedOnly); if (parentFile == null) {