[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-3790) Missing nullcheck in org.jboss.seam.core.Validators.equals

Francisco Jose Peredo Noguez (JIRA) jira-events at lists.jboss.org
Fri Dec 5 11:47:36 EST 2008


     [ https://jira.jboss.org/jira/browse/JBSEAM-3790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francisco Jose Peredo Noguez updated JBSEAM-3790:
-------------------------------------------------


wrong patch file

> Missing nullcheck in org.jboss.seam.core.Validators.equals
> ----------------------------------------------------------
>
>                 Key: JBSEAM-3790
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3790
>             Project: Seam
>          Issue Type: Bug
>            Reporter: Francisco Jose Peredo Noguez
>             Fix For: 2.1.2.CR1
>
>         Attachments: patch.txt
>
>
> In
>  @Override
>       public boolean equals(Object other)
>       {
>          Key key = (Key) other;
>          return key.validatableClass.equals(validatableClass) && key.locale.equals(locale);
>       }
> If the parameter other is null, the line return key.validatableClass... will crash with null pointer exception. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list