mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 12:19:16 +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