Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340573 - NPE connecting to remote target
Summary: NPE connecting to remote target
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.4   Edit
Assignee: Michael Rennie CLA
QA Contact: Michael Rennie CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-21 10:40 EDT by Michael Rennie CLA
Modified: 2011-07-07 13:22 EDT (History)
3 users (show)

See Also:


Attachments
fix (1.06 KB, patch)
2011-07-07 13:22 EDT, Michael Rennie CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2011-03-21 10:40:53 EDT
Version: 3.7.0
Build id: I20110310-1119

Trying to connect to a remote Crossfire target with breakpoints set yeilds the following NPE:

java.lang.NullPointerException
	at org.eclipse.wst.jsdt.debug.internal.core.JavaScriptDebugPlugin.isExternalSource(JavaScriptDebugPlugin.java:133)
	at org.eclipse.wst.jsdt.debug.internal.core.breakpoints.JavaScriptBreakpoint.addToTarget(JavaScriptBreakpoint.java:158)
	at org.eclipse.wst.jsdt.debug.internal.core.model.JavaScriptDebugTarget.breakpointAdded(JavaScriptDebugTarget.java:807)
	at org.eclipse.wst.jsdt.debug.internal.core.model.JavaScriptDebugTarget.initializeBreakpoints(JavaScriptDebugTarget.java:398)
	at org.eclipse.wst.jsdt.debug.internal.core.model.JavaScriptDebugTarget.initialize(JavaScriptDebugTarget.java:126)
	at org.eclipse.wst.jsdt.debug.internal.core.model.JavaScriptDebugTarget.<init>(JavaScriptDebugTarget.java:116)
	at org.eclipse.wst.jsdt.debug.internal.core.launching.RemoteJavaScriptLaunchDelegate.launch(RemoteJavaScriptLaunchDelegate.java:163)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:925)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1129)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The reason is the 'Suspend For All Script Loads' option. It tries to install itself like a normal breakpoint, but it has no script path (expected) - as it applies to all scripts.
Comment 1 Michael Rennie CLA 2011-07-07 13:22:04 EDT
Created attachment 199274 [details]
fix
Comment 2 Michael Rennie CLA 2011-07-07 13:22:28 EDT
applied patch to HEAD