Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331359 - NPE closing editor
Summary: NPE closing editor
Status: RESOLVED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 12:19 EST by Michael Rennie CLA
Modified: 2011-06-30 11:17 EDT (History)
1 user (show)

See Also:


Attachments
the file I closed to get the NPE (78.54 KB, application/javascript)
2010-11-29 12:19 EST, Michael Rennie CLA
no flags Details

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