Author: michiel
Date: 2009-05-12 09:25:49 +0200 (Tue, 12 May 2009)
New Revision: 35067

Modified:
   mmbase/trunk/html/mmbase/validation/valid.jspx
Log:
avoid NPE if datatype not found

Modified: mmbase/trunk/html/mmbase/validation/valid.jspx
===================================================================
--- mmbase/trunk/html/mmbase/validation/valid.jspx      2009-05-12 06:42:08 UTC 
(rev 35066)
+++ mmbase/trunk/html/mmbase/validation/valid.jspx      2009-05-12 07:25:49 UTC 
(rev 35067)
@@ -34,7 +34,7 @@
           }
        };
     }
-    Collection errors = dataType.validate(value, node, field);
+    Collection errors = dataType == null ? new ArrayList() : 
dataType.validate(value, node, field);
     pageContext.setAttribute("errors", errors);
     pageContext.setAttribute("node", node);
     pageContext.setAttribute("field", field);

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to