mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics for EA-25474
This commit is contained in:
@@ -141,6 +141,10 @@ public class LowLevelSearchUtil {
|
||||
final CharSequence buffer = file.getViewProvider().getContents();
|
||||
|
||||
TextRange range = scope.getTextRange();
|
||||
if (range == null) {
|
||||
throw new AssertionError("Element " + scope + " of class " + scope.getClass() + " has null range");
|
||||
}
|
||||
|
||||
int scopeStart = range.getStartOffset();
|
||||
int startOffset = scopeStart;
|
||||
int endOffset = range.getEndOffset();
|
||||
|
||||
Reference in New Issue
Block a user