Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-116

UserManager generates NPE in certain cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0, 2.6.1
    • 2.6.1
    • None
    • OS X 10.5.1, Tomcat 6.0.14

    Description

      Under certain circumstances, calls to UserManager.getUserDatabase() are made before the user database is actually initialized, resulting in NPEs. To resolve, we simply need to replace internal references to m_userDatabase with getUserDatabase(), which will lazily initialize the database if it has not already happened.

      Not sure why we didn't spot this before, but it bit me in the a** yesterday.

      Attachments

        Activity

          People

            ajaquith Andrew R. Jaquith
            ajaquith Andrew R. Jaquith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: