Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2015-06-10 03:25:54 -0400
committerUwe Stieber2015-06-10 03:25:54 -0400
commitda9040f76ddf18fff89ab2c1e69f3fd5e31a94f8 (patch)
treebfa78e5761cc9adced38d8f4f90cb416be44c070
parent75f54caad12b6e3e7591b1e22ed36ddc3221b64a (diff)
downloadorg.eclipse.tcf-da9040f76ddf18fff89ab2c1e69f3fd5e31a94f8.tar.gz
org.eclipse.tcf-da9040f76ddf18fff89ab2c1e69f3fd5e31a94f8.tar.xz
org.eclipse.tcf-da9040f76ddf18fff89ab2c1e69f3fd5e31a94f8.zip
Target Explorer: Fix NPE in DebugServicesLaunchesListener
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugServicesLaunchesListener.java4
1 files changed, 3 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/DebugServicesLaunchesListener.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugServicesLaunchesListener.java
index c82b15a51..9c6004b76 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugServicesLaunchesListener.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugServicesLaunchesListener.java
@@ -67,7 +67,9 @@ public class DebugServicesLaunchesListener implements ILaunchesListener2 {
for (ILaunch launch : launches) {
try {
- if (launch.getLaunchConfiguration().getType().getIdentifier().equals(ILaunchTypes.ATTACH)) {
+ if (launch.getLaunchConfiguration() != null && launch.getLaunchConfiguration().getType() != null
+ && launch.getLaunchConfiguration().getType().getIdentifier() != null
+ && launch.getLaunchConfiguration().getType().getIdentifier().equals(ILaunchTypes.ATTACH)) {
IModelNode[] contexts = LaunchContextsPersistenceDelegate.getLaunchContexts(launch.getLaunchConfiguration());
if (contexts != null && contexts.length == 1 && contexts[0] != null) {
contexts[0].fireChangeEvent("dbgLaunchedState", null, null); //$NON-NLS-1$

Back to the top