mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-31477 - assert: DocumentImpl.removeDocumentListener
This commit is contained in:
@@ -885,7 +885,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
public void setHighlighter(@NotNull EditorHighlighter highlighter) {
|
||||
assertIsDispatchThread();
|
||||
final Document document = getDocument();
|
||||
if (myHighlighter != null) {
|
||||
if (myHighlighter != null && !isDisposed()) {
|
||||
document.removeDocumentListener(myHighlighter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user