Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2016-10-30 22:16:21 +0000
committerJaxsun McCarthy Huggan2016-10-30 22:27:30 +0000
commit8dce5ce1c4659a1cf691e47151f7be4ab12a971b (patch)
treefbff56d61d932457831eb93d09c9c10947cc3f80
parent8dfadbbce8eb3c3d17320478b12015a0641ff367 (diff)
downloadorg.eclipse.mylyn-8dce5ce1c4659a1cf691e47151f7be4ab12a971b.tar.gz
org.eclipse.mylyn-8dce5ce1c4659a1cf691e47151f7be4ab12a971b.tar.xz
org.eclipse.mylyn-8dce5ce1c4659a1cf691e47151f7be4ab12a971b.zip
fix NPE due to null configuration from AllLocalTests
Change-Id: Idd09952cdabeb96c87e4bb3ba8fb0fe4b269597e Signed-off-by: Jaxsun McCarthy Huggan <jaxsun.mccarthy@tasktop.com>
-rw-r--r--org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllLocalTests.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllLocalTests.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllLocalTests.java
index 1a3d8c61..ecfbd1ba 100644
--- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllLocalTests.java
+++ b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllLocalTests.java
@@ -30,16 +30,16 @@ import junit.framework.TestSuite;
public class AllLocalTests {
public static Test suite() {
- TestConfiguration testConfiguration = ManagedSuite.getTestConfiguration();
- if (testConfiguration == null) {
- TestConfiguration configuration = new TestConfiguration();
+ TestConfiguration configuration = ManagedSuite.getTestConfiguration();
+ if (configuration == null) {
+ configuration = new TestConfiguration();
configuration.setLocalOnly(true);
ManagedSuite.setTestConfiguration(configuration);
}
TestSuite suite = new ManagedTestSuite(AllLocalTests.class.getName());
- AllNonConnectorTests.addTests(suite, testConfiguration);
- addTests(suite, testConfiguration);
+ AllNonConnectorTests.addTests(suite, configuration);
+ addTests(suite, configuration);
return suite;
}

Back to the top