From 3d320a8fe36090269505c4593701a95e12a12ebe Mon Sep 17 00:00:00 2001 From: James Agnew Date: Fri, 31 Oct 2014 15:05:21 -0400 Subject: [PATCH] Fix test yet again! --- .../src/test/java/ca/uhn/example/ExampleTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/restful-server-example-test/src/test/java/ca/uhn/example/ExampleTest.java b/restful-server-example-test/src/test/java/ca/uhn/example/ExampleTest.java index 424b2268cd1..95afd1b182f 100644 --- a/restful-server-example-test/src/test/java/ca/uhn/example/ExampleTest.java +++ b/restful-server-example-test/src/test/java/ca/uhn/example/ExampleTest.java @@ -21,7 +21,9 @@ public class ExampleTest { @AfterClass public static void afterClass() throws Exception { - ourServer.stop(); + if (ourServer != null) { + ourServer.stop(); + } System.clearProperty("ca.uhn.fhir.to.TesterConfig_SYSPROP_FORCE_SERVERS");