Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2015-06-10 03:25:54 -0400
committerUwe Stieber2015-06-10 11:56:48 -0400
commit26264f63c0ddf8fe5416b4d5b9d08c5b62a46dc7 (patch)
tree805775ec4e542ff0c9197979b4e689a1185c247a
parent09ae341e46766ea905035a6c57864158c2e99c91 (diff)
downloadorg.eclipse.tcf-26264f63c0ddf8fe5416b4d5b9d08c5b62a46dc7.tar.gz
org.eclipse.tcf-26264f63c0ddf8fe5416b4d5b9d08c5b62a46dc7.tar.xz
org.eclipse.tcf-26264f63c0ddf8fe5416b4d5b9d08c5b62a46dc7.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