Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 308779 - When the Content Assist function is triggered in the style label, Null Pontere Exception occurs.
Summary: When the Content Assist function is triggered in the style label, Null Ponter...
Status: CLOSED DUPLICATE of bug 170080
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.html CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-12 01:48 EDT by zhaojian CLA
Modified: 2010-04-15 10:40 EDT (History)
1 user (show)

See Also:


Attachments
When the Content Assist function is triggered in the style label, Null Pontere Exception occurs. (984 bytes, text/plain)
2010-04-15 00:05 EDT, zhaojian CLA
no flags Details

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