Re: [castor-dev] RE: NPE unmarshalling an empty list
Werner Guttmann <[email protected]> Wed, 31 Mar 2010 23:33:04 +0200
| Newsgroups | gmane.comp.java.castor.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Jerre, can you please file a bug with our Jira instance ? Thanks Werner On 31.03.2010 18:03, [email protected] wrote: > 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 > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email