Calling findGroup with null ref generates NPE

Description

Calling findGroup with a null reference generates an NPE, viz.:

Group grp = SiteService.findGroup(null);

java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
at org.sakaiproject.site.impl.SiteCacheImpl.getGroup(SiteCacheImpl.java:163)
at org.sakaiproject.site.impl.BaseSiteService.findGroup(BaseSiteService.java:2702)
at org.sakaiproject.site.cover.SiteService.findGroup(SiteService.java:446)

This has been inter alia in errors originating from Section Info UI.

Activity

Steve Swinsburg June 27, 2010 at 8:52 PM

2.5.x, r78836

Steve Swinsburg June 23, 2010 at 11:55 PM

[Bulk update]

Closing these issues so that they can be merged to the 2.5.x maintenance branch - these issues have comments and commits that suggest these issues are verified, and in most cases, a considerable amount of time has elapsed since they were resolved.

Stephen Marquard July 24, 2008 at 6:55 AM

Resolved in r49330.

Tested on a trunk build by invoking this code from a .jws:

Group grp = SiteService.findGroup(null);
ToolConfiguration tool = SiteService.findTool(null);
SitePage page = SiteService.findPage(null);

Fixed

Details

Priority

Affects versions

Fix versions

Assignee

Reporter

Created July 24, 2008 at 6:41 AM
Updated June 27, 2010 at 8:52 PM
Resolved July 24, 2008 at 6:55 AM