Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvrubezhny2014-03-03 22:28:50 +0000
committerNick Sandonato2014-03-12 15:16:53 +0000
commit5d892cf0283624a6b8f50a64ce9162e08c697939 (patch)
tree1ea66aa263de9e23cf04f0fe8a0296cb1c9ca9fc
parentddac7fbec1298f11023805860115f9d92b54ef30 (diff)
downloadwebtools.sourceediting-5d892cf0283624a6b8f50a64ce9162e08c697939.tar.gz
webtools.sourceediting-5d892cf0283624a6b8f50a64ce9162e08c697939.tar.xz
webtools.sourceediting-5d892cf0283624a6b8f50a64ce9162e08c697939.zip
[429517] NullPointerException in JSDTContentAssistant.computeCompletionProposals()v201403121649
Signed-off-by: vrubezhny <vrubezhny@exadel.com>
-rw-r--r--bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/contentassist/JSDTContentAssistant.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/contentassist/JSDTContentAssistant.java b/bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/contentassist/JSDTContentAssistant.java
index ee92dd9eee..a03fcbde41 100644
--- a/bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/contentassist/JSDTContentAssistant.java
+++ b/bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/contentassist/JSDTContentAssistant.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 IBM Corporation and others.
+ * Copyright (c) 2007, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -131,12 +131,13 @@ public class JSDTContentAssistant extends AbstractContentAssistProcessor impleme
//proposals.add(endScript);
}
JSDTProposalCollector theCollector = getProposalCollector(context.getViewer(), context.getInvocationOffset());
+ if(theCollector==null) return new ArrayList(0);
+
/* add end script tag if needed */
theCollector.setAllowsRequiredProposals(CompletionProposal.CONSTRUCTOR_INVOCATION, CompletionProposal.TYPE_REF, true);
/* --------- Content Assistant --------- */
- if(theCollector==null) return new ArrayList(0);
getContentAssistProcessor().setProposalCollector(theCollector);
completionProposals = getContentAssistProcessor().computeCompletionProposals(context.getViewer(), context.getInvocationOffset());

Back to the top