Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorAlain Magloire2003-11-20 17:22:51 -0500
committerAlain Magloire2003-11-20 17:22:51 -0500
commit3039c5061af389e5aeab7bc97d3eea4c3b76e821 (patch)
tree94a7e7a0934cc51e91c10bdbb9731d15e1e9b65a /debug
parent0abe44597414e5ae2d1431a734375edbcde8ce11 (diff)
downloadorg.eclipse.cdt-3039c5061af389e5aeab7bc97d3eea4c3b76e821.tar.gz
org.eclipse.cdt-3039c5061af389e5aeab7bc97d3eea4c3b76e821.tar.xz
org.eclipse.cdt-3039c5061af389e5aeab7bc97d3eea4c3b76e821.zip
Fix NPE 46313
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/EventManager.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/EventManager.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/EventManager.java
index 3d9eb00ccd8..1dd56a26f51 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/EventManager.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/EventManager.java
@@ -273,7 +273,12 @@ public class EventManager extends SessionObject implements ICDIEventManager, Obs
Target cTarget = (Target)currentTarget;
cTarget.updateState(threadId);
try {
- cTarget.getCurrentThread().getCurrentStackFrame();
+ ICDIThread cthread = cTarget.getCurrentThread();
+ if (cthread != null) {
+ cthread.getCurrentStackFrame();
+ } else {
+ return false;
+ }
} catch (CDIException e1) {
//e1.printStackTrace();
}

Back to the top