0 Replies Latest reply on Dec 4, 2008 8:13 AM by Francisco Jose Peredo Noguez

    Possible bug in org.jboss.seam.core.Validators

    Francisco Jose Peredo Noguez Master

      Possible bug in org.jboss.seam.core.Validators because it does not check for null argument:


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


      Should I submit a JIRA and a patch?