Author: vrubezhny
Date: 2009-01-29 12:41:37 -0500 (Thu, 29 Jan 2009)
New Revision: 13352
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java
Log:
JBIDE-3684 OpenOns in some cases throw NPE
Issue is fixed
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java 2009-01-29
17:39:14 UTC (rev 13351)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java 2009-01-29
17:41:37 UTC (rev 13352)
@@ -823,10 +823,12 @@
ELOperandResolveStatus status = resolveELOperand(file, expr, true, vars, varSearcher);
if (status.isOK()) {
MemberInfo member = status.getMemberOfResolvedOperand();
- IJavaElement el = member.getJavaElement();
- if (el != null) {
- res.add(el);
- return res;
+ if (member != null) {
+ IJavaElement el = member.getJavaElement();
+ if (el != null) {
+ res.add(el);
+ return res;
+ }
}
}
return res;
Show replies by date