mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix invalid vfile access via RunnableStatusListener, take 2 (EA-217263 - assert: FileManagerImpl.findDirectory)
GitOrigin-RevId: dc6b27012cb74ec5fe4ebe276d5076c64716dd72
This commit is contained in:
committed by
intellij-monorepo-bot
parent
39cf65c011
commit
45cfae73ea
+1
-1
@@ -28,7 +28,7 @@ class RunnableStatusListener implements DaemonCodeAnalyzer.DaemonListener {
|
||||
Editor editor = ((TextEditor)fileEditor).getEditor();
|
||||
Project project = editor.getProject();
|
||||
VirtualFile file = fileEditor.getFile();
|
||||
if (file != null && project != null) {
|
||||
if (file != null && project != null && file.isValid()) {
|
||||
boolean hasRunMarkers = ContainerUtil.findInstance(
|
||||
DaemonCodeAnalyzerImpl.getLineMarkers(editor.getDocument(), project),
|
||||
RunLineMarkerProvider.RunLineMarkerInfo.class) != null;
|
||||
|
||||
Reference in New Issue
Block a user