[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-3985) NullPointerException on ClassIdentifierStrategy
Norman Richards (JIRA)
jira-events at lists.jboss.org
Wed Mar 4 10:01:25 EST 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Richards closed JBSEAM-3985.
-----------------------------------
Resolution: Duplicate Issue
Assignee: Norman Richards
Thanks for reporting this! I actually just fixed this recently in trunk under JBSEAM-3793.
> 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
> Assignee: Norman Richards
>
> 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