myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r885959 - /myfaces/core/trunk/api/src/main/java/javax/faces/validator/BeanValidator.java
Date Tue, 01 Dec 2009 21:59:47 GMT
Author: lu4242
Date: Tue Dec  1 21:59:47 2009
New Revision: 885959

URL: http://svn.apache.org/viewvc?rev=885959&view=rev
Log:
MYFACES-2436 BeanValidator stops on null value (@NotNull not checked) (Thanks to Michael Kurz
for this patch)

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/validator/BeanValidator.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/validator/BeanValidator.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/validator/BeanValidator.java?rev=885959&r1=885958&r2=885959&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/validator/BeanValidator.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/validator/BeanValidator.java Tue Dec
 1 21:59:47 2009
@@ -115,11 +115,6 @@
         if (context == null) throw new NullPointerException("context");
         if (component == null) throw new NullPointerException("component");
 
-        if (value == null)
-        {
-            return;
-        }
-
         // Obtain a reference to the to-be-validated object and the property name.
         ValueReferenceWrapper valueReferenceWrapper = getValueReference(component, context);
         if (valueReferenceWrapper == null)



Mime
View raw message