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

mibo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git


The following commit(s) were added to refs/heads/master by this push:
     new ac862fc48 Update ODataBinderImpl.java
ac862fc48 is described below

commit ac862fc48bdb7f4e2f764862b6d9ab7af4c731bc
Author: kjordan2001 <[email protected]>
AuthorDate: Mon Mar 14 12:11:41 2022 -0500

    Update ODataBinderImpl.java
---
 .../org/apache/olingo/client/core/serialization/ODataBinderImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/lib/client-core/src/main/java/org/apache/olingo/client/core/serialization/ODataBinderImpl.java
 
b/lib/client-core/src/main/java/org/apache/olingo/client/core/serialization/ODataBinderImpl.java
index dfd3d41a0..84b6d14df 100644
--- 
a/lib/client-core/src/main/java/org/apache/olingo/client/core/serialization/ODataBinderImpl.java
+++ 
b/lib/client-core/src/main/java/org/apache/olingo/client/core/serialization/ODataBinderImpl.java
@@ -852,7 +852,7 @@ public class ODataBinderImpl implements ODataBinder {
       }
     } else if (valuable.isEnum()) {
       value = client.getObjectFactory().newEnumValue(type == null ? null : 
type.toString(),
-          valuable.asEnum().toString());
+          valuable.isNull() ? null : valuable.asEnum().toString());
     } else if (valuable.isComplex()) {
       final ClientComplexValue lcValue =
           client.getObjectFactory().newComplexValue(type == null ? null : 
type.toString());

Reply via email to