Issue Details (XML | Word | Printable)

Key: CONF-5821
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Jeremy Higgs
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Confluence

NullPointerException in UserLister macro when LDAP is used

Created: 29/Mar/06 04:50 PM   Updated: 15/Oct/08 07:21 PM
Component/s: Macros - Userlister Macro, Users & Groups
Affects Version/s: 2.1.5
Fix Version/s: 2.2.8

Time Tracking:
Not Specified

Issue Links:
Reference
 

Participants: Andrew Lynch [Atlassian], Andy Brook and Jeremy Higgs
Since last comment: 6 weeks, 5 days ago
Resolution Date: 15/Oct/08 07:21 PM
Support reference count: 2
Labels:


 Description  « Hide
A user has reported that a NullPointerException occurs on line 59 of UserList.java, when the User returned is null.

The likely cause of this is a username returned by LDAP, which the UserAccessor was not able to find a matching User for. The lines below that assume that the 'user' variable isn't null, causing an NPE.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Andy Brook added a comment - 21/Jun/07 08:47 AM
I see this on a regular basis, most users cant get it do list ldap groups correctly, even when we know what 'confluence' version of the displayName is.
NullPointerException
PagerUtils:25
UserList.getGroupUsers:91
UserList.build:39
UserLister:79

Andrew Lynch [Atlassian] added a comment - 15/Oct/08 07:19 PM
This appears to be fixed for quite some time (version 1.2 of this plugin). Please update to a more recent version of Confluence or update this plugin if this is still an issue for you.

Cheers,
Andrew Lynch


Andrew Lynch [Atlassian] added a comment - 15/Oct/08 07:21 PM
No review necessary as this issue was fixed some time ago but not marked as fixed.