From 541c76280d6d1c8bfa72cdf5041d73703237c963 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 20 Aug 2012 17:56:57 +0400 Subject: [PATCH] Corrupted VFS assertion --- .../openapi/vfs/newvfs/persistent/PersistentFSImpl.java | 4 ++++ 1 file changed, 4 insertions(+) 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) {