[jbossseam-issues] [JBoss JIRA] Resolved: (JBSEAM-1595) EnumConverter NPE when missing value
Pete Muir (JIRA)
jira-events at lists.jboss.org
Mon Jul 2 06:28:33 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1595?page=all ]
Pete Muir resolved JBSEAM-1595.
-------------------------------
Resolution: Done
Done, thanks!
> 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