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

Bug 308779

Summary: When the Content Assist function is triggered in the style label, Null Pontere Exception occurs.
Product: [WebTools] WTP Source Editing Reporter: zhaojian <zhaoj>
Component: wst.htmlAssignee: wst.html <wst.html-inbox>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: nsand.dev
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
When the Content Assist function is triggered in the style label, Null Pontere Exception occurs. none

Description zhaojian CLA 2010-04-12 01:48:52 EDT
Build Identifier: M20080911-1700

In the style tab of jsp file, when the value of type attribute of the label is "text/script", the Content Assist function is triggered and Null pointer exception will be generated in error log.
Error position:
at
org.eclipse.wst.html.core.internal.htmlcss.StyleElementAdapter.getMode
l(StyleElementAdapter.java:169)

Reproducible: Always

Steps to Reproduce:
1.Create a JSP file and open it using JSP Editor.
2.Add style label in the JSP file, and set the attribute value of the label to "text/script".
text/script”。
3.By triggering the Content Assist function in the block of the style label, Null pointer exception will be generated.
Comment 1 Nick Sandonato CLA 2010-04-12 17:21:41 EDT
Thanks for the report.

*** This bug has been marked as a duplicate of bug 170080 ***
Comment 2 zhaojian CLA 2010-04-15 00:05:21 EDT
Created attachment 164928 [details]
When the Content Assist function is triggered in the style label, Null Pontere Exception occurs. 

In the style tab of jsp file, when the value of type attribute of the label is
"text/script", the Content Assist function is triggered and Null pointer
exception will be generated in error log.
Error position:
at
org.eclipse.wst.html.core.internal.htmlcss.StyleElementAdapter.getMode
l(StyleElementAdapter.java:169)
Comment 3 Nick Sandonato CLA 2010-04-15 10:40:31 EDT
Thanks for the patch, this has already been addressed by bug 170080.