jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1309408 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/TransientNodeState.java
Date Wed, 04 Apr 2012 14:31:49 GMT
Author: mduerig
Date: Wed Apr  4 14:31:48 2012
New Revision: 1309408

URL: http://svn.apache.org/viewvc?rev=1309408&view=rev
Log:
OAK-9: Internal tree builder
fix: return null for non existing child node states

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/TransientNodeState.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/TransientNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/TransientNodeState.java?rev=1309408&r1=1309407&r2=1309408&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/TransientNodeState.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/TransientNodeState.java
Wed Apr  4 14:31:48 2012
@@ -455,6 +455,9 @@ public class TransientNodeState {
         TransientNodeState transientState = existingChildNodes.get(name);
         if (transientState == null) {
             NodeState state = persistentState.getChildNode(name);
+            if (state == null) {
+                return null;
+            }
             transientState = new TransientNodeState(editor, name, state);
             existingChildNodes.put(name, transientState);
         }



Mime
View raw message