Community
Participate
Working Groups
code from HEAD working on Crossfire I got the following NPE trying to show source for a generated script: java.lang.NullPointerException at java.net.URI$Parser.parse(URI.java:3003) at java.net.URI.<init>(URI.java:578) at java.net.URI.create(URI.java:840) at org.eclipse.wst.jsdt.debug.internal.core.launching.JavaScriptSourceLookupParticipant.getSourceURI(JavaScriptSourceLookupParticipant.java:113) at org.eclipse.wst.jsdt.debug.internal.core.launching.JavaScriptSourceLookupParticipant.findSourceElements(JavaScriptSourceLookupParticipant.java:63) at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:141) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:490) at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:758) at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:148) at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools.java:777) at org.eclipse.debug.internal.ui.elements.adapters.StackFrameSourceDisplayAdapter$SourceLookupJob.run(StackFrameSourceDisplayAdapter.java:109) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) The method IJavaScriptStackFrame#sourceURI() is spec'd to return null, we should at least handle it properly. Steps 1. install the crossfire bundle (or launch your target with the source) 2. run the auto-attach option 3. debug google.ca 4. suspend one of the threads Happens: NPE Expected: script suspends, stackframe shows up and source is displayed.
(In reply to comment #0) > > The method IJavaScriptStackFrame#sourceURI() is spec'd to return null, we > should at least handle it properly. > correction that should be IJavaScriptStackFrame#getSourcePath()
Closing. This bug was fixed with changes in the Crossfire bundle to properly create URI paths when the reported path was "/"