mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vfs] minor fix
GitOrigin-RevId: 99fcd0b6e091c3df62c866f53d001f88f6aa4dac
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e21e93629a
commit
6bce98b8f5
+1
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user