Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2015-09-03 07:07:51 -0400
committerUwe Stieber2015-09-03 07:07:51 -0400
commit24fc7b5f05f1efad8501265b15f367f80bd36839 (patch)
tree25a7e9e34780f59facec8f9e17cb4cb0d8dbfcf4
parent18b831567a1e7c12fea9db0c40d04b8c32dcb535 (diff)
downloadorg.eclipse.tcf-24fc7b5f05f1efad8501265b15f367f80bd36839.tar.gz
org.eclipse.tcf-24fc7b5f05f1efad8501265b15f367f80bd36839.tar.xz
org.eclipse.tcf-24fc7b5f05f1efad8501265b15f367f80bd36839.zip
Target Explorer: Fix NPE in debug service implementation
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java
index 9d0c5b76d..90889f938 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java
@@ -113,7 +113,7 @@ public class DebugService extends AbstractService implements IDebugService {
if (config != null) {
ILaunch[] launches = DebugPlugin.getDefault().getLaunchManager().getLaunches();
for (ILaunch launch : launches) {
- if (launch.getLaunchConfiguration().getType().getIdentifier().equals(ILaunchTypes.ATTACH) && !launch.isTerminated()) {
+ if (launch.getLaunchConfiguration() != null && launch.getLaunchConfiguration().getType().getIdentifier().equals(ILaunchTypes.ATTACH) && !launch.isTerminated()) {
IModelNode[] contexts = LaunchContextsPersistenceDelegate.getLaunchContexts(launch.getLaunchConfiguration());
if (contexts != null && contexts.length == 1 && contexts[0].equals(context)) {
callback.setProperty("launch", launch); //$NON-NLS-1$

Back to the top