[vfs] minor fix

GitOrigin-RevId: 99fcd0b6e091c3df62c866f53d001f88f6aa4dac
This commit is contained in:
Ruslan Cheremin
2025-07-09 17:32:05 +00:00
committed by intellij-monorepo-bot
parent e21e93629a
commit 6bce98b8f5
@@ -12,7 +12,6 @@ import com.intellij.openapi.vfs.*;
import com.intellij.openapi.vfs.encoding.EncodingManager;
import com.intellij.openapi.vfs.encoding.EncodingRegistry;
import com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl;
import com.intellij.openapi.vfs.newvfs.ManagingFS;
import com.intellij.openapi.vfs.newvfs.NewVirtualFile;
import com.intellij.openapi.vfs.newvfs.NewVirtualFileSystem;
import com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl;
@@ -162,7 +161,7 @@ public abstract class VirtualFileSystemEntry extends NewVirtualFile {
@Override
public @NotNull CharSequence getNameSequence() {
PersistentFSImpl pfs = (PersistentFSImpl)ManagingFS.getInstanceOrNull();
PersistentFSImpl pfs = owningPersistentFS();
if (pfs == null) {
return "<FS-is-disposed>";//shutdown-safe
}