jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cko...@apache.org
Subject svn commit: r1393938 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java
Date Thu, 04 Oct 2012 07:26:11 GMT
Author: ckoell
Date: Thu Oct  4 07:26:10 2012
New Revision: 1393938

URL: http://svn.apache.org/viewvc?rev=1393938&view=rev
Log:
JCR-3437 The DbDataStore does not implement getRecordIfStored as described in javadoc

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java?rev=1393938&r1=1393937&r2=1393938&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/db/DbDataStore.java
Thu Oct  4 07:26:10 2012
@@ -533,7 +533,7 @@ public class DbDataStore implements Data
             // SELECT LENGTH, LAST_MODIFIED FROM DATASTORE WHERE ID = ?
             rs = conHelper.query(selectMetaSQL, id);
             if (!rs.next()) {
-                throw new DataStoreException("Record not found: " + identifier);
+                return null;
             }
             long length = rs.getLong(1);
             long lastModified = rs.getLong(2);



Mime
View raw message