Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-549

Security Factory NPE when there is no configuration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • PicketBox_v4_0_alpha3
    • PicketBox_v4_0_alpha2
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            anil.saldhana Anil Saldanha (Inactive)
            anil.saldhana Anil Saldanha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: