[castor-dev] RE: NPE unmarshalling an empty list
<[email protected]> Wed, 31 Mar 2010 11:03:27 -0500
| Newsgroups | gmane.comp.java.castor.devel |
|---|---|
| Message-ID | <C39305E292B2EC478628E6DFEAB74FEF0193C5F9@houic-s-02343.americas.shell.com> |
When unmarshalling an empty list, I get a NullPointerException from StringTokenizer at UnmarshalHandler.java:809 (using castor 1.3; I think it will be line 810 with 1.3.1).
<myList/> <!-- will produce NPE -->
<myList></myList> <!-- will produce NPE -->
<myList> </myList> <!-- will parse ok -->
Looking at the src, the StringTokenizer can't be constructed with a null 'str' string.
I'm assuming all three xml statements are valid if I want to allow for a 0-length list.
Thanks,
Jerre Parker
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email