|
[
Permlink
| « Hide
]
Shay Banon added a comment - 16/Oct/08 05:19 AM
Can you post a scenario and a stack trace of when this happens?
I have made a custom converter in which I try to get a value for a field named "postcode" of the object I am trying to unmarshall:
resource.getValue(context.getPropertyNamingStrategy().buildPath(mapping.getPath(), "postcode").getPath() This field should be filled by AdresConverter.marshall(), but it might happen that it has no value at all due to unexpected content. 2008-10-16 12:30:05,150 ERROR [STDERR] java.lang.NullPointerException I hope this information is sufficient... I actually fixed that to return null in this case, since I think it is more correct to return null (similar to the fact that getProperty returns null).
|
|||||||||||||||||||||||||||||||||||||||