mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
debugger: don't try to find PsiElement after file end (CR-IC-6167)
This commit is contained in:
@@ -233,7 +233,7 @@ public abstract class SourcePosition implements Navigatable{
|
||||
}
|
||||
}
|
||||
|
||||
PsiElement element;
|
||||
PsiElement element = null;
|
||||
int offset = startOffset;
|
||||
while (true) {
|
||||
final CharSequence charsSequence = document.getCharsSequence();
|
||||
@@ -243,6 +243,8 @@ public abstract class SourcePosition implements Navigatable{
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (offset >= charsSequence.length()) break;
|
||||
|
||||
element = rootElement.findElementAt(offset);
|
||||
|
||||
if (element instanceof PsiComment) {
|
||||
|
||||
Reference in New Issue
Block a user