Issue #1554 fix XmlGenericMapAdapter to work with null maps.
Former-commit-id:60c435861a
[formerly 904e3387de59f534b6457c7a12e8f94d55974884] Former-commit-id:7220c4c6cc
This commit is contained in:
parent
73c8533cbb
commit
21616e06ce
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@ public class XmlGenericMapAdapter<K, V> extends
|
|||
|
||||
@Override
|
||||
public MapType<K, V> marshal(Map<K, V> unserialized) throws Exception {
|
||||
if (unserialized == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
MapType<K, V> mapType = new MapType<K, V>();
|
||||
|
||||
for (Map.Entry<K, V> entry : unserialized.entrySet()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue