[jboss-jira] [JBoss JIRA] Created: (SECURITY-549) Security Factory NPE when there is no configuration

Anil Saldhana (JIRA) jira-events at lists.jboss.org
Tue Jan 11 21:52:49 EST 2011


Security Factory NPE when there is no configuration
---------------------------------------------------

                 Key: SECURITY-549
                 URL: https://issues.jboss.org/browse/SECURITY-549
             Project: PicketBox (JBoss Security and Identity Management)
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: PicketBox_v4_0_alpha2
            Reporter: Anil Saldhana
            Assignee: Anil Saldhana


A call :
String securityDomain = "other";
        AuthenticationManager authM = SecurityFactory.getAuthenticationManager(securityDomain);
        

will lead to:
Caused by: java.lang.RuntimeException: Unable to init SecurityFactory:
        at org.picketbox.factories.SecurityFactory.<clinit>(SecurityFactory.java:66)
        ... 7 more
Caused by: java.lang.NullPointerException
        at org.picketbox.factories.SecurityFactory.<clinit>(SecurityFactory.java:57)

We need to replace the NPE with a meaningful message.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list