Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2009-10-22 20:42:42 +0000
committerPawel Piech2009-10-22 20:42:42 +0000
commit22ea0d5b42326f7c491846d5cd24b056e967c69e (patch)
tree00bcf9a4f2bdd0f9cf3825db8c6a33e57ebec0a6
parent7111ed8b9fb652c7f49cfb204f4681393b52ea37 (diff)
downloadeclipse.platform.debug-22ea0d5b42326f7c491846d5cd24b056e967c69e.tar.gz
eclipse.platform.debug-22ea0d5b42326f7c491846d5cd24b056e967c69e.tar.xz
eclipse.platform.debug-22ea0d5b42326f7c491846d5cd24b056e967c69e.zip
Bug 292480 - Fixed an NPE in case where getLaunch(Object) returned null in postExecute().
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/TerminateAndRelaunchAction.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/TerminateAndRelaunchAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/TerminateAndRelaunchAction.java
index ff576bd89..9e3b340d3 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/TerminateAndRelaunchAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/TerminateAndRelaunchAction.java
@@ -39,7 +39,9 @@ public class TerminateAndRelaunchAction extends DebugCommandAction {
// prompting to proceed
for (int i = 0; i < targets.length; i++) {
ILaunch launch = DebugUIPlugin.getLaunch(targets[i]);
- RelaunchActionDelegate.relaunch(launch.getLaunchConfiguration(), launch.getLaunchMode());
+ if (launch != null) {
+ RelaunchActionDelegate.relaunch(launch.getLaunchConfiguration(), launch.getLaunchMode());
+ }
}
}
});

Back to the top