Author: vrubezhny
Date: 2010-04-16 14:22:54 -0400 (Fri, 16 Apr 2010)
New Revision: 21544
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/info/JavaStringELInfoHover.java
Log:
JBIDE-6192: NullPointerException occures while calculating EL text hover
issue is fixed for the Java String EL Hovers
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/info/JavaStringELInfoHover.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/info/JavaStringELInfoHover.java 2010-04-16
16:40:29 UTC (rev 21543)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/info/JavaStringELInfoHover.java 2010-04-16
18:22:54 UTC (rev 21544)
@@ -248,7 +248,9 @@
ELResolver[] resolvers = context.getElResolvers();
for (int i = 0; resolvers != null && i < resolvers.length; i++) {
- ELResolution resolution = resolvers[i].resolve(context, ie, region.getOffset() +
region.getLength());
+ ELResolution resolution = resolvers[i] == null ? null : resolvers[i].resolve(context,
ie, region.getOffset() + region.getLength());
+ if (resolution == null)
+ continue;
ELSegment segment = resolution.getLastSegment();
if(segment instanceof JavaMemberELSegmentImpl) {
Show replies by date