mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE's
This commit is contained in:
+4
-2
@@ -299,11 +299,12 @@ public class LivePreviewController implements LivePreview.Delegate, FindUtil.Rep
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
off();
|
||||
if (myDisposed) return;
|
||||
|
||||
mySearchResults.dispose();
|
||||
myLivePreview.cleanUp();
|
||||
off();
|
||||
|
||||
mySearchResults.dispose();
|
||||
getEditor().getDocument().removeDocumentListener(myDocumentListener);
|
||||
myDisposed = true;
|
||||
}
|
||||
@@ -325,6 +326,7 @@ public class LivePreviewController implements LivePreview.Delegate, FindUtil.Rep
|
||||
public void off() {
|
||||
if (myDisposed) return;
|
||||
|
||||
setTrackingDocument(false);
|
||||
setLivePreview(null);
|
||||
setTrackingSelection(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user