diagnostics for EA-25474

This commit is contained in:
peter
2011-02-04 15:46:11 +01:00
parent d4d47954d4
commit fb4ff4134b
@@ -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();