Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDawid Pakuła2018-05-27 07:18:42 -0400
committerDawid Pakuła2018-05-27 14:19:38 -0400
commit7be4af7094d4b262d5f775d8cda380abb9e7aa2f (patch)
treec53e8de67111ff7d03bcb8771f164d9784f62dbb
parent1e43b3ba58740f78bbd54f9894dec1d7821c8ac3 (diff)
downloadeclipse.platform.text-7be4af7094d4b262d5f775d8cda380abb9e7aa2f.tar.gz
eclipse.platform.text-7be4af7094d4b262d5f775d8cda380abb9e7aa2f.tar.xz
eclipse.platform.text-7be4af7094d4b262d5f775d8cda380abb9e7aa2f.zip
Change-Id: Ib1ea59e69c54811982ee484676be8e77f982fda7 Signed-off-by: Dawid Pakuła <zulus@w3des.net>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AsyncCompletionProposalPopup.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AsyncCompletionProposalPopup.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AsyncCompletionProposalPopup.java
index 26f260d4a..4178c78ac 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AsyncCompletionProposalPopup.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/AsyncCompletionProposalPopup.java
@@ -304,7 +304,7 @@ class AsyncCompletionProposalPopup extends CompletionProposalPopup {
@Override
protected List<ICompletionProposal> computeFilteredProposals(int offset, DocumentEvent event) {
- if(fComputedProposals.size() > 0 && fComputedProposals.get(0) instanceof ComputingProposal) {
+ if(fComputedProposals != null && fComputedProposals.size() > 0 && fComputedProposals.get(0) instanceof ComputingProposal) {
Set<CompletableFuture<List<ICompletionProposal>>> remaining = Collections.synchronizedSet(new HashSet<>(fFutures));
for (CompletableFuture<List<ICompletionProposal>> future : fFutures) {
future.thenRun(() -> {

Back to the top