mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
SPR-7047 - XML MarshallingView assumes non-null value for object to be marshalled.
This commit is contained in:
+1
-1
@@ -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