SPR-7047 - XML MarshallingView assumes non-null value for object to be marshalled.
This commit is contained in:
@@ -132,7 +132,7 @@ public class MarshallingView extends AbstractView {
|
||||
return o;
|
||||
}
|
||||
for (Object o : model.values()) {
|
||||
if (this.marshaller.supports(o.getClass())) {
|
||||
if (o != null && this.marshaller.supports(o.getClass())) {
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user