Author: vrubezhny
Date: 2010-04-16 05:59:30 -0400 (Fri, 16 Apr 2010)
New Revision: 21520
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/info/FaceletTagInfoHoverProcessor.java
Log:
JBIDE-6192: NullPointerException occures while calculating EL text hover
issue is fixed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/info/FaceletTagInfoHoverProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/info/FaceletTagInfoHoverProcessor.java 2010-04-16
09:53:35 UTC (rev 21519)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/info/FaceletTagInfoHoverProcessor.java 2010-04-16
09:59:30 UTC (rev 21520)
@@ -185,7 +185,9 @@
ELResolver[] resolvers = fContext.getElResolvers();
for (int i = 0; resolvers != null && i < resolvers.length; i++) {
- ELResolution resolution = resolvers[i].resolve(fContext, elOperand,
fDocumentPosition);
+ ELResolution resolution = resolvers[i] == null ? null : resolvers[i].resolve(fContext,
elOperand, fDocumentPosition);
+ if (resolution == null)
+ continue;
ELSegment segment = resolution.getLastSegment();
if(segment instanceof JavaMemberELSegmentImpl) {
Show replies by date