[
https://issues.apache.org/jira/browse/OLINGO-970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15329007#comment-15329007
]
Tobias Stolzenberger commented on OLINGO-970:
---------------------------------------------
Hi Michael,
the NullpointerException is also raised when sending the payload with Atom/XML
as follows:
<d:MyComplexTypeProperty m:null="true" m:type="MyComplexType.Type1"/>
Regards,
Tobias
> Post operation fails when null value is passed in the payload
> -------------------------------------------------------------
>
> Key: OLINGO-970
> URL: https://issues.apache.org/jira/browse/OLINGO-970
> Project: Olingo
> Issue Type: Bug
> Components: odata2-jpa
> Affects Versions: V2 2.0.6
> Reporter: Shankara
> Assignee: Michael Bolz
> Labels: bug
> Attachments: 0001-null-check-for-Complex-Type-value.patch
>
>
> Hi,
> When passed null value (in JSON payload) or empty tag (in XML payload) for
> the value of a Complex Type the call to the post fails throwing null pointer
> exception in setComplexProperty method for the variable propertyValue. Can we
> add a null check here so that the call doesn't fail.
> Please refer to the patch attached.
> Example: JSON Payload
> ...
> ComplexType: null,
> ....
> XML Payload
> ...
> <ComplexType />
> ...
> Thanks & Regards
> Shankara G
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)