Tom van Wietmarschen created OLINGO-1152:
--------------------------------------------
Summary: OLingo client crashes when encountering a null value for
an enum property
Key: OLINGO-1152
URL: https://issues.apache.org/jira/browse/OLINGO-1152
Project: Olingo
Issue Type: Improvement
Components: odata4-client
Affects Versions: (Java) V4 4.3.0
Reporter: Tom van Wietmarschen
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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)