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

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Aug 13 06:07:10 EDT 2007


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

Pete Muir closed JBSEAM-1148.
-----------------------------


> 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.ALPHA
>
>
> 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