Working around a bug in the IBM JVM which might cause a NPE in test tear down (FTPSER...
authorNiklas Gustavsson <ngn@apache.org>
Thu, 23 Jun 2011 07:35:20 +0000 (07:35 +0000)
committerNiklas Gustavsson <ngn@apache.org>
Thu, 23 Jun 2011 07:35:20 +0000 (07:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/mina/ftpserver/trunk@1138754 13f79535-47bb-0310-9956-ffa450edef68

core/src/test/java/org/apache/ftpserver/clienttests/ClientTestTemplate.java

index 6ec9608..aad9d52 100644 (file)
@@ -227,7 +227,12 @@ public abstract class ClientTestTemplate extends TestCase {
         }
 
         if (server != null) {
-            server.stop();
+               try {
+                       server.stop();
+               } catch(NullPointerException e) {
+                       // a bug in the IBM JVM might cause Thread.interrupt() to throw an NPE
+                       // see http://www-01.ibm.com/support/docview.wss?uid=swg1IZ52037&wv=1
+               }
         }
 
         cleanTmpDirs();