jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r480920 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java
Date Thu, 30 Nov 2006 13:35:44 GMT
Author: angela
Date: Thu Nov 30 05:35:43 2006
New Revision: 480920

URL: http://svn.apache.org/viewvc?view=rev&rev=480920
Log:
work in progress

- the root state may never be moved

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java?view=diff&rev=480920&r1=480919&r2=480920
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java
Thu Nov 30 05:35:43 2006
@@ -1423,6 +1423,11 @@
     }
 
     private static boolean isMovedState(NodeState modState) {
-        return modState.overlayedState.parent != modState.parent.overlayedState;
+        if (modState.parent == null) {
+            // the root state cannot be moved
+            return false;
+        } else {
+            return modState.overlayedState.parent != modState.parent.overlayedState;
+        }
     }
 }



Mime
View raw message