Check to ensure value not null.
This commit is contained in:
parent
618a7ea380
commit
e932d0dcf2
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ public class MapperInvocationHandler<E> implements InvocationHandler, Serializab
|
||||||
Set<String> keys = v.keySet();
|
Set<String> keys = v.keySet();
|
||||||
for (String key : keys) {
|
for (String key : keys) {
|
||||||
Object value = v.get(key);
|
Object value = v.get(key);
|
||||||
if (mutable) {
|
if (value != null && mutable) {
|
||||||
if (ImmutableList.class.isAssignableFrom(value.getClass())) {
|
if (ImmutableList.class.isAssignableFrom(value.getClass())) {
|
||||||
m.put(key, new ArrayList((List) value));
|
m.put(key, new ArrayList((List) value));
|
||||||
} else if (ImmutableMap.class.isAssignableFrom(value.getClass())) {
|
} else if (ImmutableMap.class.isAssignableFrom(value.getClass())) {
|
||||||
|
|
Loading…
Reference in a new issue