mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't retrieve a disposed lookup
This commit is contained in:
+4
-2
@@ -400,8 +400,10 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement
|
||||
}
|
||||
|
||||
public void closeAndFinish(boolean hideLookup) {
|
||||
Lookup lookup = LookupManager.getActiveLookup(myEditor);
|
||||
LOG.assertTrue(lookup == myLookup, lookup + "; " + this);
|
||||
if (!myLookup.isLookupDisposed()) {
|
||||
Lookup lookup = LookupManager.getActiveLookup(myEditor);
|
||||
LOG.assertTrue(lookup == myLookup, lookup + "; " + this);
|
||||
}
|
||||
myLookup.removeLookupListener(myLookupListener);
|
||||
finishCompletionProcess(true);
|
||||
CompletionServiceImpl.assertPhase(CompletionPhase.NoCompletion.getClass());
|
||||
|
||||
Reference in New Issue
Block a user