Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370035 - [JFACE] JavaNullPointer exception with SASS files
Summary: [JFACE] JavaNullPointer exception with SASS files
Status: CLOSED DUPLICATE of bug 365526
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.css (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.css CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-27 22:35 EST by Samuel Sol CLA
Modified: 2012-01-30 09:44 EST (History)
2 users (show)

See Also:


Attachments
Log file (365.62 KB, text/plain)
2012-01-28 20:58 EST, Samuel Sol CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Sol CLA 2012-01-27 22:35:21 EST
Build Identifier: Version: 3.7.1 Build id: M20110909-1335

I recently updated Eclipse to version 3.7.1. I'm using it with PDT 3.0.0 also. On my site we use Scaffold\SASS on our css files. After the update (this did not happen on Helios), if I click or double click to the right of a closing parenthesis, it throws a java.lang.NullPointerException. The bug happens only on a closing parenthesis which has another set inside it. So for example, on the next line, only the external closing parenthesis triggers the error, not the one inside:

.cssrule{ .insiderule{ rules } }


 The log error is below together with a css example file that triggers the error:

!ENTRY org.eclipse.jface 4 2 2012-01-28 01:29:50.133
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.ui 4 0 2012-01-28 01:29:50.211
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.ui 4 0 2012-01-28 01:29:54.939
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.ui 4 0 2012-01-28 01:29:55.731
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.jface 4 2 2012-01-28 01:29:55.909
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.ui 4 0 2012-01-28 01:29:55.958
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.ui 4 0 2012-01-28 01:30:06.844
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.jface 4 2 2012-01-28 01:30:07.037
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.ui 4 0 2012-01-28 01:30:07.088
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.ui 4 0 2012-01-28 01:30:19.516
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException

.bucketfrontpage{	font-size: fontsizes.fs13to11;
						> .body{			padding: 0!important; margin-top: 0!important;
											> .minibucket{	width: 32%; margin-left: 1%; float: left; margin-bottom: 10px; height: 230px; overflow: hidden;
																bucket_frontpage.blockbg; border: bucket_frontpage.blockbrd;
																ul{	list-style-type: disc; margin: 5px 10px 5px 20px;
																		li{	margin-bottom: 2px;
																				a{ max-height: 2.5em; overflow: hidden; display: inline-block; vertical-align:top; }
																		}
																}
																&[data-type=videos],
																&[data-type=images]{	width: 98%; height: 305px;
																							.more{		top: 5px; bottom: auto!important; }
																							.titleline{	display: none; }
																							.basicimg{	height: 125px; bucket_frontpage.imgblockshadow;
																											margin: 5px 0 0 10px;
																											.gamename{	max-height: 1.125em; margin: 0 10px;
																															font-size: fontsizes.fs11to10;
																											}
																							}
																}
																
											}
						}
}

Reproducible: Always

Steps to Reproduce:
1. Opens a SASS css file;
2. Click or double clicking on a closing parenthesis which has another set of parenthesis inside it.
Comment 1 Remy Suen CLA 2012-01-28 08:00:02 EST
Please attach the log file itself to this bug.
Comment 2 Samuel Sol CLA 2012-01-28 20:58:11 EST
Created attachment 210237 [details]
Log file

This is my log inside .metadata as of today. I triggered the bug a few times and it can be found on the bottom of the file.
Comment 3 Nick Sandonato CLA 2012-01-30 09:44:23 EST
You should find this fix in the next service release of Indigo (Bug 365526). Thanks for the report.

*** This bug has been marked as a duplicate of bug 365526 ***