Repository: tapestry-5
Updated Branches:
  refs/heads/master 93116c9f0 -> 875ca1c0b


TAP5-736 - TextField validate parameter allows Null, but throws NPE


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/c8bf6f97
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/c8bf6f97
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/c8bf6f97

Branch: refs/heads/master
Commit: c8bf6f9739d4ab541d02c7cd9a72689335d8d919
Parents: 93116c9
Author: fscheffer <m...@felix-scheffer.de>
Authored: Fri Aug 15 00:10:48 2014 +0200
Committer: Jochen Kemnade <jochen.kemn...@eddyson.de>
Committed: Mon Aug 18 12:30:06 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/tapestry5/corelib/base/AbstractTextField.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/c8bf6f97/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractTextField.java
----------------------------------------------------------------------
diff --git 
a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractTextField.java
 
b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractTextField.java
index 12c1774..7e6b742 100644
--- 
a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractTextField.java
+++ 
b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/base/AbstractTextField.java
@@ -67,7 +67,7 @@ public abstract class AbstractTextField extends AbstractField
      * The object that will perform input validation (which occurs after 
translation). The validate binding prefix is
      * generally used to provide this object in a declarative fashion.
      */
-    @Parameter(defaultPrefix = BindingConstants.VALIDATE)
+    @Parameter(defaultPrefix = BindingConstants.VALIDATE, allowNull = false)
     @SuppressWarnings("unchecked")
     private FieldValidator<Object> validate;
 

Reply via email to