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

Pete Muir (JIRA) jira-events at lists.jboss.org
Wed Apr 25 14:41:30 EDT 2007

     [ http://jira.jboss.com/jira/browse/JBSEAM-1148?page=all ]

Pete Muir resolved JBSEAM-1148.

    Resolution: Done

Thanks Mike :)

> 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
>         Assigned To: Pete Muir
>            Priority: Optional
>             Fix For: 1.3.0.BETA1
> 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