Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2016-02-05 20:45:35 +0000
committerEugene Tarassov2016-02-05 20:45:35 +0000
commitde38970b5f2ae1f6470a1cef289c98a9744f4943 (patch)
tree79979b7c4787a27926b3724a6504537c385f3c42 /plugins/org.eclipse.tcf.debug
parent815cdb95b358033ee8649c23cb5369dbf745fd4d (diff)
downloadorg.eclipse.tcf-de38970b5f2ae1f6470a1cef289c98a9744f4943.tar.gz
org.eclipse.tcf-de38970b5f2ae1f6470a1cef289c98a9744f4943.tar.xz
org.eclipse.tcf-de38970b5f2ae1f6470a1cef289c98a9744f4943.zip
TCF Tests: fixed NPE in the Expressions test
Diffstat (limited to 'plugins/org.eclipse.tcf.debug')
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java
index 464faa4bf..02289a450 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java
@@ -980,11 +980,12 @@ class TestExpressions implements ITCFTest, RunControl.DiagnosticTestDone,
if (test_done) return;
IRunControl.RunControlContext ctx = test_rc.getContext(context);
if (ctx != null) {
+ if (test_ctx_id == null) return;
String p = ctx.getParentID();
String c = ctx.getCreatorID();
if (!test_ctx_id.equals(c) && !test_ctx_id.equals(p)) return;
+ exit(new Exception("Context exception: " + msg));
}
- exit(new Exception("Context exception: " + msg));
}
public void contextRemoved(String[] context_ids) {

Back to the top