From 77e838bf10b09aa91054b1eba54349561be89e14 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Mon, 4 Aug 2008 18:29:19 +0000 Subject: [PATCH] added null check --- .../java/org/springframework/webflow/mvc/view/BindingModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/BindingModel.java b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/BindingModel.java index 57fb5e67..2a2fc889 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/BindingModel.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/BindingModel.java @@ -155,7 +155,7 @@ public class BindingModel extends AbstractErrors { // special handling for array, collection, map types // necessary as getFieldValue is called by form tags for non-formattable properties, too // TODO - investigate how to improve this in Spring MVC - if (valueType.isArray() || Collection.class.isAssignableFrom(valueType) + if (valueType == null || valueType.isArray() || Collection.class.isAssignableFrom(valueType) || Map.class.isAssignableFrom(valueType)) { return null; }