[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1148) Validators.validate() fails with NPE when expressionString is null

Mike Quilleash (JIRA) jira-events at lists.jboss.org
Thu Apr 5 10:00:58 EDT 2007


Validators.validate() fails with NPE when expressionString is null
------------------------------------------------------------------

                 Key: JBSEAM-1148
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1148
             Project: JBoss Seam
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1.6.GA
         Environment: Any
            Reporter: Mike Quilleash


public InvalidValue[] validate(FacesContext context, String propertyExpression, Object value)

The propertyExpression, which is extracted from a ValueBinding, by ModelValidator, may be null in some circumstances.  I use custom ValueExpression implementations in a couple of places which are not derived from an EL string so return null from getExpressionString().

validate() should probably check for null and quietly 'return new InvalidValue[ 0 ]' like it does when it cannot parse the expression string properly.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list