incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Jalkanen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-116) UserManager generates NPE in certain cases
Date Fri, 28 Dec 2007 15:52:43 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554808
] 

Janne Jalkanen commented on JSPWIKI-116:
----------------------------------------

Surely you mean 2.6.1-cvs-2?

> UserManager generates NPE in certain cases
> ------------------------------------------
>
>                 Key: JSPWIKI-116
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-116
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.0, 2.6.1
>         Environment: OS X 10.5.1, Tomcat 6.0.14
>            Reporter: Andrew Jaquith
>            Assignee: Andrew Jaquith
>             Fix For: 2.6.1
>
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message