You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/06/29 18:31:10 UTC

svn commit: r1606538 - /commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java

Author: sebb
Date: Sun Jun 29 16:31:09 2014
New Revision: 1606538

URL: http://svn.apache.org/r1606538
Log:
 in case setup failed, no point throwing NPE as well

Modified:
    commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java

Modified: commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java?rev=1606538&r1=1606537&r2=1606538&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java (original)
+++ commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java Sun Jun 29 16:31:09 2014
@@ -100,7 +100,9 @@ public class BasicRemoteCacheClientServe
     @AfterClass
     public static void stop() throws IOException
     {
-        server.shutdown("localhost", remotePort);
+        if (server != null) { // in case setup failed, no point throwing NPE as well
+            server.shutdown("localhost", remotePort);
+        }
     }
 
     /**