mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 06:51:17 +07:00
EA-26552 - SIOOBE: TextChangesStorage.substring
This commit is contained in:
@@ -55,7 +55,11 @@ public class DocumentWrapper {
|
||||
}
|
||||
|
||||
private String getLine(final int i) {
|
||||
return myDocument.getText(new TextRange(myDocument.getLineStartOffset(i), myDocument.getLineEndOffset(i)));
|
||||
TextRange range = new TextRange(myDocument.getLineStartOffset(i), myDocument.getLineEndOffset(i));
|
||||
if (range.getLength() < 0) {
|
||||
assert false : myDocument;
|
||||
}
|
||||
return myDocument.getText(range);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user