Author: akazakov
Date: 2010-10-12 11:29:08 -0400 (Tue, 12 Oct 2010)
New Revision: 25750
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFMessageELCompletionEngine.java
Log:
https://jira.jboss.org/browse/JBIDE-7318 Fixed NPE
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFMessageELCompletionEngine.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFMessageELCompletionEngine.java 2010-10-12
14:57:27 UTC (rev 25749)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFMessageELCompletionEngine.java 2010-10-12
15:29:08 UTC (rev 25750)
@@ -147,7 +147,9 @@
List<TextProposal> completions = new ArrayList<TextProposal>();
ELResolutionImpl status = resolveELOperand(file, parseOperand("" + prefix),
returnEqualedVariablesOnly, bundles); //$NON-NLS-1$
- completions.addAll(status.getProposals());
+ if(status!=null) {
+ completions.addAll(status.getProposals());
+ }
return completions;
}