jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1325296 - /jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java
Date Thu, 12 Apr 2012 14:49:14 GMT
Author: reschke
Date: Thu Apr 12 14:49:13 2012
New Revision: 1325296

URL: http://svn.apache.org/viewvc?rev=1325296&view=rev
Log:
OAK-60: workaround for NPEs in derived classes

Modified:
    jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java

Modified: jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java?rev=1325296&r1=1325295&r2=1325296&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java
Thu Apr 12 14:49:13 2012
@@ -62,7 +62,10 @@ public class DbBlobStoreTest extends Tes
             sentinel.close();
         }
         store.close();
-        cp.dispose();
+
+        if (cp != null) {
+            cp.dispose();
+        }
     }
 
     public void testAddFile() throws Exception {



Mime
View raw message