Null-Pointer Exception on null-String (Java)
Status: Beta
Brought to you by:
carlosjaimez
I'm trying to serialize an object with an nullable String member.
I'd expect:
- serialized to empty tag
What I get:
- Nullpointer-exception and analog comment in XML
Version:
1.0
Additional Information:
I pinpointed it to the following lines:
461 else if (mapJavaToWOX.get(fields[i].getType())!=null){
462 String woxType = (String)mapJavaToWOX.get(value.getClass());
^^^^
null, therefore Exception
I guess a check for Null-Pointer is missing.
With kind regards
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
java-Version
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"