db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From banda...@apache.org
Subject svn commit: r189662 - /incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/BackingStoreHashtable.java
Date Wed, 08 Jun 2005 22:10:19 GMT
Author: bandaram
Date: Wed Jun  8 15:10:19 2005
New Revision: 189662

URL: http://svn.apache.org/viewcvs?rev=189662&view=rev
Log:
Derby-344: Check if the old_row is not-null before attempting a clone.

Submitted by Jack Klebanoff (klebanoff-derby@sbcglobal.net)

Modified:
    incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/BackingStoreHashtable.java

Modified: incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/BackingStoreHashtable.java
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/BackingStoreHashtable.java?rev=189662&r1=189661&r2=189662&view=diff
==============================================================================
--- incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/BackingStoreHashtable.java
(original)
+++ incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/BackingStoreHashtable.java
Wed Jun  8 15:10:19 2005
@@ -323,7 +323,10 @@
 		// the only difference between getClone and cloneObject is cloneObject does
 		// not objectify a stream.  We use getClone here.  Beetle 4896.
         for (int i = 0; i < old_row.length; i++)
-            new_row[i] = ((DataValueDescriptor) old_row[i]).getClone();
+        {
+            if( old_row[i] != null)
+                new_row[i] = ((DataValueDescriptor) old_row[i]).getClone();
+        }
 
         return(new_row);
     }



Mime
View raw message