[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1595) EnumConverter NPE when missing value

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Jul 2 06:13:57 EDT 2007


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

Pete Muir updated JBSEAM-1595:
------------------------------

    Fix Version/s: 2.0.0.CR1
         Assignee: Pete Muir
         Priority: Minor  (was: Major)

> EnumConverter NPE when missing value
> ------------------------------------
>
>                 Key: JBSEAM-1595
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1595
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 2.0.0.BETA1
>            Reporter: Magnus Sandberg
>         Assigned To: Pete Muir
>            Priority: Minor
>             Fix For: 2.0.0.CR1
>
>
> If the Component using the EnumConverter is missing an value-expr the 'expr' below will be null and and NPE will be thrown at line 17. 
> expr should be checked for <null> before any call to getType().
> --
> (15) ValueExpression expr = comp.getValueExpression("value");
> (16)
> (17) Class enumType = expr.getType(context.getELContext());
> --

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