mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assertReadAccess instead of dispatch thread
This commit is contained in:
@@ -3317,7 +3317,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
|
||||
@Override
|
||||
public int logicalPositionToOffset(@NotNull LogicalPosition pos) {
|
||||
assertIsDispatchThread();
|
||||
assertReadAccess();
|
||||
if (myDocument.getLineCount() == 0) return 0;
|
||||
|
||||
if (pos.line < 0) throw new IndexOutOfBoundsException("Wrong line: " + pos.line);
|
||||
|
||||
Reference in New Issue
Block a user