[jbosscache-commits] JBoss Cache SVN: r6934 - core/branches/2.2.X/src/main/java/org/jboss/cache/loader.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Oct 14 09:52:34 EDT 2008


Author: manik.surtani at jboss.com
Date: 2008-10-14 09:52:34 -0400 (Tue, 14 Oct 2008)
New Revision: 6934

Modified:
   core/branches/2.2.X/src/main/java/org/jboss/cache/loader/JDBCCacheLoader.java
Log:
Added fix for JBCACHE-1426

Modified: core/branches/2.2.X/src/main/java/org/jboss/cache/loader/JDBCCacheLoader.java
===================================================================
--- core/branches/2.2.X/src/main/java/org/jboss/cache/loader/JDBCCacheLoader.java	2008-10-14 13:26:25 UTC (rev 6933)
+++ core/branches/2.2.X/src/main/java/org/jboss/cache/loader/JDBCCacheLoader.java	2008-10-14 13:52:34 UTC (rev 6934)
@@ -220,8 +220,9 @@
          {
             updateNode(name, attributes);
          }
-         else
-         {//the node exists and the attribute map is NOT null
+         else if (attributes != null && !attributes.isEmpty())
+         {
+            //the node exists and the attribute map is NOT null
             Map<Object, Object> newAttributes = new HashMap<Object, Object>(treeNode);
             newAttributes.putAll(attributes);//creation sequnce important - we need to overwrite old values
             updateNode(name, newAttributes);




More information about the jbosscache-commits mailing list