jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r480877 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
Date Thu, 30 Nov 2006 08:43:10 GMT
Author: stefan
Date: Thu Nov 30 00:43:09 2006
New Revision: 480877

URL: http://svn.apache.org/viewvc?view=rev&rev=480877
Log:
JCR-648: fixed potential cause of NPE

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java?view=diff&rev=480877&r1=480876&r2=480877
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
Thu Nov 30 00:43:09 2006
@@ -90,6 +90,8 @@
     public SessionItemStateManager(NodeId rootNodeId,
                                    LocalItemStateManager stateMgr,
                                    NamespaceResolver nsResolver) {
+        transientStore = new ItemStateMap();
+        atticStore = new ItemStateMap();
 
         this.stateMgr = stateMgr;
         stateMgr.addListener(this);
@@ -97,9 +99,6 @@
         // create hierarchy manager that uses both transient and persistent state
         hierMgr = new CachingHierarchyManager(rootNodeId, this, nsResolver);
         addListener(hierMgr);
-
-        transientStore = new ItemStateMap();
-        atticStore = new ItemStateMap();
     }
 
     /**



Mime
View raw message