[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3985) NullPointerException on ClassIdentifierStrategy

douglas carvalho (JIRA) jira-events at lists.jboss.org
Wed Mar 4 09:32:22 EST 2009

NullPointerException on ClassIdentifierStrategy

                 Key: JBSEAM-3985
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3985
             Project: Seam
          Issue Type: Bug
    Affects Versions: 2.1.1.GA
            Reporter: douglas carvalho

 Class:  ClassIdentifierStrategy in seam security

The code does "equals(name.trim()))", but sinse name is null, as done in the begin of the code block, it throws a nullPointerException.

private String getIdentifierName(Class cls)
      if (!identifierNames.containsKey(cls))
         String name = null;
         if (cls.isAnnotationPresent(Identifier.class))
            Identifier identifier = (Identifier) cls.getAnnotation(Identifier.class);
            if (identifier.name() != null && !"".equals(name.trim()))
               name = identifier.name();

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