Check to ensure value not null.

This commit is contained in:
Greg Burd 2017-11-14 10:06:13 -05:00
parent 618a7ea380
commit e932d0dcf2

View file

@ -237,7 +237,7 @@ public class MapperInvocationHandler<E> implements InvocationHandler, Serializab
Set<String> keys = v.keySet();
for (String key : keys) {
Object value = v.get(key);
if (mutable) {
if (value != null && mutable) {
if (ImmutableList.class.isAssignableFrom(value.getClass())) {
m.put(key, new ArrayList((List) value));
} else if (ImmutableMap.class.isAssignableFrom(value.getClass())) {