[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2875) ConverterException with no FacesMessage causes NPE
Shane Bryzak (JIRA)
jira-events at lists.jboss.org
Sat Apr 12 21:08:54 EDT 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-2875?page=all ]
Shane Bryzak closed JBSEAM-2875.
--------------------------------
Resolution: Done
Assignee: Shane Bryzak
Fixed, thanks for the patch.
> ConverterException with no FacesMessage causes NPE
> --------------------------------------------------
>
> Key: JBSEAM-2875
> URL: http://jira.jboss.com/jira/browse/JBSEAM-2875
> Project: Seam
> Issue Type: Bug
> Affects Versions: 2.0.2.CR1
> Reporter: Clint Popetz
> Assigned To: Shane Bryzak
> Fix For: 2.0.2.CR2, 2.1.0.BETA1
>
> Attachments: validation-errors.patch
>
>
> Pages.convertAndValidateStringValuesInPageContext is catching Validator and Converter Exceptions, and calling facesContext.addMessage() with the facesMessage that the exception contains, but that message can be null. Of course, that's bad practice, but if it does occur, it results in a NPE that masks the original validation failure.
> I'll attach a patch to check if the facesMessage is null first.
--
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