jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1793639 - /jackrabbit/trunk/jackrabbit-data/src/main/java/org/apache/jackrabbit/core/data/FSBackend.java
Date Wed, 03 May 2017 11:53:34 GMT
Author: dbrosius
Date: Wed May  3 11:53:34 2017
New Revision: 1793639

URL: http://svn.apache.org/viewvc?rev=1793639&view=rev
Log:
guard against NPEs

Modified:
    jackrabbit/trunk/jackrabbit-data/src/main/java/org/apache/jackrabbit/core/data/FSBackend.java

Modified: jackrabbit/trunk/jackrabbit-data/src/main/java/org/apache/jackrabbit/core/data/FSBackend.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-data/src/main/java/org/apache/jackrabbit/core/data/FSBackend.java?rev=1793639&r1=1793638&r2=1793639&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-data/src/main/java/org/apache/jackrabbit/core/data/FSBackend.java
(original)
+++ jackrabbit/trunk/jackrabbit-data/src/main/java/org/apache/jackrabbit/core/data/FSBackend.java
Wed May  3 11:53:34 2017
@@ -269,7 +269,9 @@ public class FSBackend extends AbstractB
                 }
             });
         } catch (Exception e) {
-            callback.onAbort(new AsyncTouchResult(identifier));
+            if (callback != null) {
+                callback.onAbort(new AsyncTouchResult(identifier));
+            }
             throw new DataStoreException("Cannot touch the record "
                 + identifier.toString(), e);
         }



Mime
View raw message