jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r158601 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/virtual/AbstractVISProvider.java
Date Tue, 22 Mar 2005 13:14:05 GMT
Author: tripod
Date: Tue Mar 22 05:14:04 2005
New Revision: 158601

URL: http://svn.apache.org/viewcvs?view=rev&rev=158601
Log:
- fixing npe

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/virtual/AbstractVISProvider.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/virtual/AbstractVISProvider.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/virtual/AbstractVISProvider.java?view=diff&r1=158600&r2=158601
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/virtual/AbstractVISProvider.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/virtual/AbstractVISProvider.java
Tue Mar 22 05:14:04 2005
@@ -284,8 +284,10 @@
      * @param state
      */
     protected NodeState cache(NodeState state) {
-        nodes.put(state.getId(), state);
-        log.debug("item added to cache. size=" + nodes.size());
+        if (state != null) {
+            nodes.put(state.getId(), state);
+            log.debug("item added to cache. size=" + nodes.size());
+        }
         return state;
     }
 



Mime
View raw message