jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1571250 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/backup/FileStoreBackup.java
Date Mon, 24 Feb 2014 11:26:52 GMT
Author: alexparvulescu
Date: Mon Feb 24 11:26:51 2014
New Revision: 1571250

URL: http://svn.apache.org/r1571250
Log:
OAK-1464 FileStoreBackup NPE in retrieving old state

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/backup/FileStoreBackup.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/backup/FileStoreBackup.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/backup/FileStoreBackup.java?rev=1571250&r1=1571249&r2=1571250&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/backup/FileStoreBackup.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/backup/FileStoreBackup.java
Mon Feb 24 11:26:51 2014
@@ -69,7 +69,7 @@ public class FileStoreBackup {
             } else {
                 // 3.2 try to retrieve the previously backed up checkpoint
                 NodeState before = store.retrieve(beforeCheckpoint);
-                if (before != null) {
+                if (before == null) {
                     // the previous checkpoint is no longer available,
                     // so use the backed up state as the basis of the
                     // incremental backup diff



Mime
View raw message