jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r225350 - /incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/AbstractPersistenceManager.java
Date Tue, 26 Jul 2005 17:12:07 GMT
Author: stefan
Date: Tue Jul 26 10:12:02 2005
New Revision: 225350

URL: http://svn.apache.org/viewcvs?rev=225350&view=rev
Log:
check existence before destroying NodeReferences data

Modified:
    incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/AbstractPersistenceManager.java

Modified: incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/AbstractPersistenceManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/AbstractPersistenceManager.java?rev=225350&r1=225349&r2=225350&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/AbstractPersistenceManager.java
(original)
+++ incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/AbstractPersistenceManager.java
Tue Jul 26 10:12:02 2005
@@ -86,7 +86,9 @@
             if (refs.hasReferences()) {
                 store(refs);
             } else {
-                destroy(refs);
+                if (exists(refs.getTargetId())) {
+                    destroy(refs);
+                }
             }
         }
     }



Mime
View raw message