jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1173723 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java
Date Wed, 21 Sep 2011 15:38:54 GMT
Author: mduerig
Date: Wed Sep 21 15:38:54 2011
New Revision: 1173723

URL: http://svn.apache.org/viewvc?rev=1173723&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP) 
null check

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java?rev=1173723&r1=1173722&r2=1173723&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/hierarchy/HierarchyEventListener.java
Wed Sep 21 15:38:54 2011
@@ -172,7 +172,7 @@ public class HierarchyEventListener impl
 
             NodeId parentId = event.getParentId();
             HierarchyEntry<?> parentEntry = parentId != null ? hierarchyMgr.lookup(parentId)
: null;
-            if (!parentEntry.denotesNode()) {
+            if (parentEntry != null && !parentEntry.denotesNode()) {
                 IllegalArgumentException e1 = new IllegalArgumentException("Invalid parentId
in event: " + parentId);
                 log.error(e1.getMessage(), e1);
                 throw e1;



Mime
View raw message