[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-3793) Null pointer dereference of name in org.jboss.seam.security.permission.ClassIdentifierStrategy.getIdentifierName(Class)
Francisco Jose Peredo Noguez (JIRA)
jira-events at lists.jboss.org
Thu Dec 4 20:42:36 EST 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francisco Jose Peredo Noguez updated JBSEAM-3793:
-------------------------------------------------
Description:
Null pointer dereference of name in org.jboss.seam.security.permission.ClassIdentifierStrategy.getIdentifierName(Class)
String name = null;
if (cls.isAnnotationPresent(Identifier.class))
{
Identifier identifier = (Identifier) cls.getAnnotation(Identifier.class);
if (identifier.name() != null && !"".equals(name.trim())) //<--- name is ALWAYS NULL here!!!!
{
name = identifier.name();
}
}
was:
Null pointer dereference of name in org.jboss.seam.security.permission.ClassIdentifierStrategy.getIdentifierName(Class)
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();
}
}
> Null pointer dereference of name in org.jboss.seam.security.permission.ClassIdentifierStrategy.getIdentifierName(Class)
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: JBSEAM-3793
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3793
> Project: Seam
> Issue Type: Bug
> Reporter: Francisco Jose Peredo Noguez
>
> Null pointer dereference of name in org.jboss.seam.security.permission.ClassIdentifierStrategy.getIdentifierName(Class)
> String name = null;
>
> if (cls.isAnnotationPresent(Identifier.class))
> {
> Identifier identifier = (Identifier) cls.getAnnotation(Identifier.class);
> if (identifier.name() != null && !"".equals(name.trim())) //<--- name is ALWAYS NULL here!!!!
> {
> 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