I looked at the source and figured out, that looking up converters dies with NPE when the src value is null while mapping List<>List.
It can't recognize the type of the destination properly. What the patch does:
- first, try to use the last found dest type (as before)
- if not found, try to get the dest object type from dest hint (new)
- if not found, try to get the dest object type from src hint (as before)
In addition I added missing support for map-null attribute. It's now respected correctly.
I've seen that Set's have similar problems but I didn't patch them too.
After applying the patch, all testcases are still valid.
Please review the patch and if you find it useful, please apply it to Sets as well and
integrate it in the next version.
Log in to post a comment.