This is an automated email from the ASF dual-hosted git repository.

doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a9e035  EMPIREDB-331 bugfix record initialization
1a9e035 is described below

commit 1a9e035950805acce6fc026fe19220edc520de45
Author: Rainer Döbele <[email protected]>
AuthorDate: Thu Sep 24 11:22:05 2020 +0200

    EMPIREDB-331 bugfix record initialization
---
 empire-db/src/main/java/org/apache/empire/db/DBRecord.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/empire-db/src/main/java/org/apache/empire/db/DBRecord.java 
b/empire-db/src/main/java/org/apache/empire/db/DBRecord.java
index 834cd3c..f612f09 100644
--- a/empire-db/src/main/java/org/apache/empire/db/DBRecord.java
+++ b/empire-db/src/main/java/org/apache/empire/db/DBRecord.java
@@ -131,7 +131,8 @@ public class DBRecord extends DBRecordData implements 
Record, Cloneable
             else
             {   // clear fields
                 for (int i=0; i<fields.length; i++)
-                    fields[i]=null; // ObjectUtils.NO_VALUE -> works too 
(difference?);
+                    if (fields[i]!=ObjectUtils.NO_VALUE)
+                        fields[i]=null;
             }
         }
         // Set State

Reply via email to