jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1148442 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/batch/ConsolidatingChangeLog.java
Date Tue, 19 Jul 2011 16:50:40 GMT
Author: mduerig
Date: Tue Jul 19 16:50:39 2011
New Revision: 1148442

URL: http://svn.apache.org/viewvc?rev=1148442&view=rev
Log:
JCR-3025: NPE in ConsolidatingChangeLog

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/batch/ConsolidatingChangeLog.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/batch/ConsolidatingChangeLog.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/batch/ConsolidatingChangeLog.java?rev=1148442&r1=1148441&r2=1148442&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/batch/ConsolidatingChangeLog.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/batch/ConsolidatingChangeLog.java
Tue Jul 19 16:50:39 2011
@@ -524,7 +524,7 @@ public class ConsolidatingChangeLog exte
             }
 
             private boolean hasSNS(NodeId nodeId) {
-                return ConsolidatingChangeLog.getPath(nodeId).getIndex() > 1;
+                return nodeId != null && ConsolidatingChangeLog.getPath(nodeId).getIndex()
> 1;
             }
         }
 



Mime
View raw message