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

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


The following commit(s) were added to refs/heads/version3 by this push:
     new 1d882a1  EMPIREDB-362 copy fix 2
1d882a1 is described below

commit 1d882a132969da16a09300807e5f4fee3151898e
Author: Rainer Döbele <[email protected]>
AuthorDate: Thu Feb 10 09:50:25 2022 +0100

    EMPIREDB-362 copy fix 2
---
 empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java 
b/empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java
index 6f255f1..dab8192 100644
--- a/empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java
+++ b/empire-db/src/main/java/org/apache/empire/commons/ClassUtils.java
@@ -127,7 +127,7 @@ public final class ClassUtils
         // class check
         if (clazz.isInterface() || clazz.isAnnotation()) {
             log.warn("Unable to copy Interface or Annotation {}", 
clazz.getName());
-            return null; // not supported
+            return (Copy.has(flags, Copy.RET_NULL) ? null : obj); // not 
supported
         }
         if (clazz.isPrimitive() || clazz.isEnum()) 
         {   // no need to copy

Reply via email to