Skip to content

Commit 0617311

Browse files
daniel-rafflerbaierd
authored andcommitted
Try and fix the AppVeyor issue.
1 parent 7dbead8 commit 0617311

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/org/sosy_lab/java_smt/test/SolverThreadLocalityTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ public void initProblemGenerator() {
5050

5151
@After
5252
public void releaseThreads() {
53-
// All threads should have terminated by now as we always wait in the test cases
54-
executor.shutdownNow();
53+
// All threads should have terminated by now as we always wait in the test
54+
if (executor != null) {
55+
executor.shutdownNow();
56+
}
5557
}
5658

5759
@Test

0 commit comments

Comments
 (0)