Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2020-03-28 11:03:23 +0000
committerAndrey Loskutov2020-03-28 11:03:23 +0000
commitcc720cde8a6d8605a2025fd540d73b8a244b8de1 (patch)
treeef17d120036f2a0a5d97830342feb51707781a77
parenta9c88ab4cece3029863484d4f9343da20b391b10 (diff)
downloadeclipse.platform.text-cc720cde8a6d8605a2025fd540d73b8a244b8de1.tar.gz
eclipse.platform.text-cc720cde8a6d8605a2025fd540d73b8a244b8de1.tar.xz
eclipse.platform.text-cc720cde8a6d8605a2025fd540d73b8a244b8de1.zip
The code is executed asynchronously, it may happen that the proposal shell is already dismissed by user, so we simply don't need to do anything. Change-Id: I718bda2e8ff7f73830c037c875cbc37328ceaa7d Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AdditionalInfoController.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AdditionalInfoController.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AdditionalInfoController.java
index a4c43e67a..5dab86158 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AdditionalInfoController.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AdditionalInfoController.java
@@ -532,6 +532,10 @@ class AdditionalInfoController extends AbstractInformationControlManager {
@Override
protected void computeInformation() {
+ if (fProposalTable == null || fProposalTable.isDisposed()) {
+ return;
+ }
+
if (fProposal instanceof ICompletionProposalExtension3)
setCustomInformationControlCreator(((ICompletionProposalExtension3) fProposal).getInformationControlCreator());
else

Back to the top