Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337649

Summary: NPE when xsl:variable does not have @name specified
Product: [WebTools] WTP Source Editing Reporter: David Carver <d_a_carver>
Component: wst.xslAssignee: Jesper Moller <jesper>
Status: RESOLVED FIXED QA Contact: David Carver <d_a_carver>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.2.2   
Target Milestone: Future   
Hardware: PC   
OS: Linux   
Whiteboard:

Description David Carver CLA 2011-02-19 17:45:42 EST
When working with an XSL styleshet where a xsl:variable is defined as:

<xsl:variable>

</xsl:variable>
<xsl:if test=""/>

Content assistance at the test attribute will toss a NPE:


java.lang.NullPointerException
at org.eclipse.wst.xsl.ui.internal.contentassist.SelectAttributeContentAssist.addVariablesProposals(SelectAttributeContentAssist.java:275)
at org.eclipse.wst.xsl.ui.internal.contentassist.SelectAttributeContentAssist.addLocalProposals(SelectAttributeContentAssist.java:242)
at org.eclipse.wst.xsl.ui.internal.contentassist.SelectAttributeContentAssist.addSelectProposals(SelectAttributeContentAssist.java:193)
at org.eclipse.wst.xsl.ui.internal.contentassist.TestAttributeContentAssist.getCompletionProposals(TestAttributeContentAssist.java:66)
Comment 1 Jesper Moller CLA 2013-04-08 20:06:20 EDT
Fixed in master