commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1606538 - /commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
Date Sun, 29 Jun 2014 16:31:10 GMT
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);
+        }
     }
 
     /**



Mime
View raw message