[
https://jira.jboss.org/jira/browse/JBSEAM-3985?page=com.atlassian.jira.pl...
]
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