Issue #1554 fix XmlGenericMapAdapter to work with null maps.
Former-commit-id: 904e3387de59f534b6457c7a12e8f94d55974884
This commit is contained in:
parent
48bcf5dece
commit
7220c4c6cc
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