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

Bug 321005

Summary: java.lang.NullPointerException for javascript validator
Product: [WebTools] JSDT Reporter: imdad sarwar <sarwar>
Component: GeneralAssignee: Chris Jaun <cmjaun>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: bishop84fr, cmjaun, david_williams, thatnitind
Version: 3.2   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screen shot of code snap and error dialog
none
patch none

Description imdad sarwar CLA 2010-07-27 08:52:58 EDT
Created attachment 175307 [details]
screen shot of code snap and error dialog

I created simple web dynamic project. Then i created one javascript file test.js ,
The java script has only one line of code as following:
//
var x = 08;
//


when project is build it gives below error in the error dialog:
Errors occurred during the build.
Errors running builder 'JavaScript Validator' on project 'Temp'.
java.lang.NullPointerException.


The above error goes if i replace 08 with another number like 01 0r 02 or 03.
Comment 1 Chris Jaun CLA 2010-08-09 17:37:56 EDT
Created attachment 176196 [details]
patch
Comment 2 Chris Jaun CLA 2010-08-09 17:42:28 EDT
Fix checked into 3.2.2 and HEAD.
Comment 3 Chris Jaun CLA 2010-08-11 12:05:55 EDT
*** Bug 322323 has been marked as a duplicate of this bug. ***