SPR-7047 - XML MarshallingView assumes non-null value for object to be marshalled.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3187 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Arjen Poutsma
2010-03-30 08:34:29 +00:00
parent b61dd8b434
commit 16078ccec9
2 changed files with 22 additions and 1 deletions
@@ -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;
}
}