mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-121806 Breakpoints fail after file modification
This commit is contained in:
+1
-1
@@ -296,7 +296,7 @@ public abstract class BreakpointWithHighlighter<P extends JavaBreakpointProperti
|
||||
final XSourcePosition position = myXBreakpoint.getSourcePosition();
|
||||
try {
|
||||
final PsiFile psiFile = PsiManager.getInstance(myProject).findFile(position.getFile());
|
||||
mySourcePosition = SourcePosition.createFromOffset(psiFile, position.getOffset());
|
||||
mySourcePosition = SourcePosition.createFromLine(psiFile, position.getLine());
|
||||
} catch (Exception e) {
|
||||
mySourcePosition = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user