forrestzhu / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Can not generate correct request XML if entity contain complex type #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.try create a entity which have a property and the property type is complex 
type

What is the expected output? What do you see instead?
create correctly, can not generate XML

What version of the product are you using? On what operating system?
0.4

Please provide any additional information below.

I think the method 
org.odata4j.format.xml.XmlFormatWriter.writeProperty(XMLWriter2 writer, 
OProperty<?> prop, boolean isDocumentElement)
have some logic problem, if the prop is complex type, then at the end of this 
method, value!=null and sValue == null which will cause NullPointerException

Original issue reported on code.google.com by xilang....@gmail.com on 27 Sep 2011 at 6:19

GoogleCodeExporter commented 8 years ago
this has been fixed in changeset 61f99e9fe617 merged on 2011-09-26 10:04:43 
-0600

Original comment by tony.ro...@gmail.com on 27 Sep 2011 at 3:57

GoogleCodeExporter commented 8 years ago

Original comment by john.spurlock on 1 Oct 2011 at 11:39

GoogleCodeExporter commented 8 years ago

Original comment by john.spurlock on 6 Nov 2011 at 3:11