Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321005 - java.lang.NullPointerException for javascript validator
Summary: java.lang.NullPointerException for javascript validator
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
: 322323 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-27 08:52 EDT by imdad sarwar CLA
Modified: 2010-08-11 12:05 EDT (History)
4 users (show)

See Also:


Attachments
screen shot of code snap and error dialog (49.52 KB, image/pjpeg)
2010-07-27 08:52 EDT, imdad sarwar CLA
no flags Details
patch (1.19 KB, patch)
2010-08-09 17:37 EDT, Chris Jaun CLA
no flags Details | Diff

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