mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-54696 - assert: FileManagerImpl.findFile
This commit is contained in:
+4
-1
@@ -309,7 +309,10 @@ public abstract class BreakpointWithHighlighter<P extends JavaBreakpointProperti
|
||||
ApplicationManager.getApplication().assertReadAccessAllowed();
|
||||
XSourcePosition position = myXBreakpoint.getSourcePosition();
|
||||
if (position != null) {
|
||||
return PsiManager.getInstance(myProject).findFile(position.getFile());
|
||||
VirtualFile file = position.getFile();
|
||||
if (file.isValid()) {
|
||||
return PsiManager.getInstance(myProject).findFile(file);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user