Update ODataBinderImpl.java

This commit is contained in:
kjordan2001 2022-03-14 12:11:41 -05:00 committed by Michael Bolz
parent ce5028d24f
commit ac862fc48b
1 changed files with 1 additions and 1 deletions

View File

@ -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());