Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337649 - NPE when xsl:variable does not have @name specified
Summary: NPE when xsl:variable does not have @name specified
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsl (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Jesper Moller CLA
QA Contact: David Carver CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 17:45 EST by David Carver CLA
Modified: 2013-04-08 20:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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