Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUwe Stieber2014-01-27 07:00:22 -0500
committerUwe Stieber2014-01-27 07:00:22 -0500
commit6c6d8820ed55f0ff3ed145bba48a4858c7421fff (patch)
treee8875272442e3295e5b073f8228923ff032ba9a9 /tests
parent56bd09d33bcf027769a78758d8d03a6c4e588e39 (diff)
downloadorg.eclipse.tcf-6c6d8820ed55f0ff3ed145bba48a4858c7421fff.tar.gz
org.eclipse.tcf-6c6d8820ed55f0ff3ed145bba48a4858c7421fff.tar.xz
org.eclipse.tcf-6c6d8820ed55f0ff3ed145bba48a4858c7421fff.zip
Tests: Fix NPE in debugger tests
Diffstat (limited to 'tests')
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java
index 4f825740c..8e6f29537 100644
--- a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java
+++ b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java
@@ -10,18 +10,14 @@
package org.eclipse.tcf.debug.test;
import java.math.BigInteger;
-import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.regex.Pattern;
import org.eclipse.debug.internal.ui.viewers.model.provisional.VirtualItem;
import org.eclipse.tcf.debug.test.services.RunControlCM.ContextState;
-import org.eclipse.tcf.debug.test.util.ICache;
-import org.eclipse.tcf.debug.test.util.RangeCache;
import org.eclipse.tcf.debug.test.util.Transaction;
import org.eclipse.tcf.services.ILineNumbers.CodeArea;
import org.eclipse.tcf.services.IRunControl;
-import org.eclipse.tcf.services.IStackTrace.StackTraceContext;
import org.eclipse.tcf.services.ISymbols;
import org.eclipse.tcf.services.ISymbols.Symbol;
import org.eclipse.test.performance.Performance;
@@ -165,7 +161,7 @@ public class SampleTest extends AbstractTcfUITest {
BigInteger pcNumber = new BigInteger(pc);
BigInteger pcNumberPlusOne = pcNumber.add(BigInteger.valueOf(1));
CodeArea[] areas = validate(fLineNumbersCM.mapToSource(processInfo.fThreadId, pcNumber, pcNumberPlusOne));
- if (areas.length >= 1) {
+ if (areas != null && areas.length >= 1) {
return areas[0];
}
return null;

Back to the top