[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1595) EnumConverter NPE when missing value
Magnus Sandberg (JIRA)
jira-events at lists.jboss.org
Mon Jul 2 05:18:57 EDT 2007
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
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