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

Bug 331359

Summary: NPE closing editor
Product: [WebTools] JSDT Reporter: Michael Rennie <Michael_Rennie>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: RESOLVED WORKSFORME QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
the file I closed to get the NPE none

Description Michael Rennie CLA 2010-11-29 12:19:14 EST
Created attachment 184056 [details]
the file I closed to get the NPE

JSDT: 1.3.0.v201008190258-7F78FUHFBBoPbPXwcKWwgj

The Crossfire project is not a JSDT project.

I was working on some JavaScript for Firebug / Crossfire and when I closed the last js editor I was working in I got the following NPE:

java.lang.NullPointerException
at org.eclipse.wst.jsdt.core.dom.JavaScriptUnitResolver.resolve(JavaScriptUnitResolver.java:538)
at org.eclipse.wst.jsdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:862)
at org.eclipse.wst.jsdt.core.dom.ASTParser.createAST(ASTParser.java:647)
at org.eclipse.wst.jsdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:581)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.wst.jsdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:574)
at org.eclipse.wst.jsdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:509)
at org.eclipse.wst.jsdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:497)
at org.eclipse.wst.jsdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:150)
at org.eclipse.wst.jsdt.internal.ui.viewsupport.SelectionListenerWithASTManager$3.run(SelectionListenerWithASTManager.java:135)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Sorry no additional steps other than closing the editor.
Comment 1 Chris Jaun CLA 2010-12-14 16:29:16 EST
Not able to reproduce this so far.
Comment 2 Chris Jaun CLA 2011-06-30 11:17:57 EDT
Still unable to reproduce in a JavaScript or a non-JavaScript project.