jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r378253 - /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Date Thu, 16 Feb 2006 14:28:48 GMT
Author: tripod
Date: Thu Feb 16 06:28:45 2006
New Revision: 378253

URL: http://svn.apache.org/viewcvs?rev=378253&view=rev
Log:
- fixing eventual NPE

Modified:
    incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java?rev=378253&r1=378252&r2=378253&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Thu Feb 16 06:28:45 2006
@@ -1508,7 +1508,7 @@
         if (nodeTypeName != null) {
             nt = session.getNodeTypeManager().getNodeType(nodeTypeName);
         }
-        return internalAddChildNode(nodeName, nt, new NodeId(uuid));
+        return internalAddChildNode(nodeName, nt, uuid == null ? null : new NodeId(uuid));
     }
 
     /**



Mime
View raw message