mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[rd debugger] IJPL-211422 Stream debugger: check file validity
GitOrigin-RevId: af63b300086c3e35ecc692a60d52d072df33d66e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b2e6f18263
commit
1f40dc6bf8
+1
-1
@@ -21,7 +21,7 @@ public final class DebuggerPositionResolverImpl implements DebuggerPositionResol
|
||||
final VirtualFile file = position.getFile();
|
||||
if (file.isValid() && 0 <= offset && offset < file.getLength()) {
|
||||
@Nullable PsiFile psiFile = PsiManager.getInstance(session.getProject()).findFile(file);
|
||||
return psiFile != null ? psiFile.findElementAt(offset) : null;
|
||||
return psiFile != null && psiFile.isValid() ? psiFile.findElementAt(offset) : null;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user