[jbosstools-issues] [JBoss JIRA] (JBIDE-9912) NPE when moving mouse over a tag
Victor Rubezhny (Issue Comment Edited) (JIRA)
jira-events at lists.jboss.org
Mon Oct 17 13:22:45 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635247#comment-12635247 ]
Victor Rubezhny edited comment on JBIDE-9912 at 10/17/11 1:21 PM:
------------------------------------------------------------------
There is known bug in BugZilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=361005 regarding this exception. The target Milestone for that issue is 3.4 (WTP)
The patch for org.eclipse.jst.jsf.facelet.core.internal.cm.FaceletDocumentFactory.createExternalTagInfo(String) method is proposeed in BugZilla.
The patch prevents NullPointerException in
org.eclipse.jst.jsf.facelet.core.internal.cm.ElementCMAdapter.getLength()
method call by returning TagInfo regardless of JSFVersion determination result.
In case of JSF Version couldn't be determined on faceted project it returns a
new MetadataTagInfo object as TagInfo.
was (Author: vrubezhny):
There is known bug in BugZilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=361005 regarding this exception.
The patch for org.eclipse.jst.jsf.facelet.core.internal.cm.FaceletDocumentFactory.createExternalTagInfo(String) method is proposeed in BugZilla.
The patch prevents NullPointerException in
org.eclipse.jst.jsf.facelet.core.internal.cm.ElementCMAdapter.getLength()
method call by returning TagInfo regardless of JSFVersion determination result.
In case of JSF Version couldn't be determined on faceted project it returns a
new MetadataTagInfo object as TagInfo.
> NPE when moving mouse over a tag
> --------------------------------
>
> Key: JBIDE-9912
> URL: https://issues.jboss.org/browse/JBIDE-9912
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: UpStream
> Affects Versions: 3.3.0.M4
> Reporter: Alexey Kazakov
> Assignee: Victor Rubezhny
> Fix For: LATER
>
>
> EXECUTE: Import tck project from o.j.t.cdi.core.test plug-in
> EXECUTE: Open home.xhtml
> EXECUTE: Move mouse over <h:graphicImage value="/img/seamlogo.png" alt="Seam logo"/> (line #22 - "/img/seamlogo.png")
> FAILURE: See Eclipse log:
> {code}
> java.lang.NullPointerException
> at org.eclipse.jst.jsf.facelet.core.internal.cm.ElementCMAdapter.getLength(ElementCMAdapter.java:109)
> at org.eclipse.wst.xml.core.internal.contentmodel.basic.CMNamedNodeMapImpl.<init>(CMNamedNodeMapImpl.java:40)
> at org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.getCMAttributeDeclaration(XMLTagInfoHoverProcessor.java:206)
> at org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.computeTagAttValueHelp(XMLTagInfoHoverProcessor.java:135)
> at org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.computeRegionHelp(XMLTagInfoHoverProcessor.java:111)
> at org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.computeHoverHelp(XMLTagInfoHoverProcessor.java:86)
> at org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor.getHoverInfo(XMLTagInfoHoverProcessor.java:257)
> at org.eclipse.jst.jsf.facelet.ui.internal.hover.FaceletHover.getHoverInfo(FaceletHover.java:58)
> at org.jboss.tools.common.text.xml.info.ChainTextHover.getHoverInfo2(ChainTextHover.java:145)
> at org.jboss.tools.common.text.xml.info.ChainTextHover.getHoverInfo2(ChainTextHover.java:132)
> at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list