You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/12/01 22:59:47 UTC

svn commit: r885959 - /myfaces/core/trunk/api/src/main/java/javax/faces/validator/BeanValidator.java

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)