Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2011-03-02 06:10:51 +0000
committereutarass2011-03-02 06:10:51 +0000
commit8a8deefdc2d9478dad7c2c92581b7e248901a6ff (patch)
tree765c78850e2307d3033bbfb215bb6da2f20016e9
parent40406fd00d83d8db365e523c29ac314192a3c912 (diff)
downloadorg.eclipse.tcf-8a8deefdc2d9478dad7c2c92581b7e248901a6ff.tar.gz
org.eclipse.tcf-8a8deefdc2d9478dad7c2c92581b7e248901a6ff.tar.xz
org.eclipse.tcf-8a8deefdc2d9478dad7c2c92581b7e248901a6ff.zip
Bug 338538: NPE in TCFBreakpointStatusListener during launch
-rw-r--r--plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/TCFBreakpointStatusListener.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/TCFBreakpointStatusListener.java b/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/TCFBreakpointStatusListener.java
index 77b4ba69a..a06d79668 100644
--- a/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/TCFBreakpointStatusListener.java
+++ b/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/TCFBreakpointStatusListener.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010 Wind River Systems, Inc. and others.
+ * Copyright (c) 2010, 2011 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -147,7 +147,7 @@ class TCFBreakpointStatusListener {
for (ILaunch launch : DebugPlugin.getDefault().getLaunchManager().getLaunches()) {
if (launch instanceof TCFLaunch) {
TCFLaunch tcfLaunch = (TCFLaunch) launch;
- if (!tcfLaunch.isDisconnected() && !tcfLaunch.isConnecting()) {
+ if (!tcfLaunch.isDisconnected() && !tcfLaunch.isConnecting() && tcfLaunch.getBreakpointsStatus() != null) {
launch_listener.onConnected(tcfLaunch, model_manager.getModel(tcfLaunch));
}
}

Back to the top