Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
(Java) V4 4.3.0
-
None
Description
An IllegalArgumentException is thrown when the OLingo client encounters a enum property that has a null value. It turns out the Property's value is set to "null" (a String) instead of null. Tracing back the source of the null-String shows org.apache.olingo.client.core.serialization.JsonDeserializer always assumes Enum values are Strings. (It calls node.asText() even on a NullNode), adding a isNull() check solves the issue. Patch to follow.