[SAK-32746] Sometimes the anonymous return from SAK-32738 is null Created: 02-Aug-2017  Updated: 10-Aug-2017  Resolved: 03-Aug-2017

Status: RESOLVED
Project: Sakai
Component/s: Portal
Affects Version/s: 11.5 [Tentative]
Fix Version/s: 11.5 [Tentative]

Type: Bug Priority: Blocker
Reporter: Matthew Jones Assignee: Matthew Jones
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depend
depends on SAK-32738 Add user role and type to portal java... Verified
11 status: Resolved
Test Plan:

Test plan is to log in, visit a few sites, wait a few minutes check the log to make sure there aren't any stack traces.


 Description   

It looks like sometimes the user returned from

		User currentUser = UserDirectoryService.getCurrentUser();

introduced in SAK-32738 is null and throws a lot of stack traces.

stack trace:

org.sakaiproject.portal.api.PortalHandlerException: java.lang.NullPointerException
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:854)
caused by: java.lang.NullPointerException
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.startPageContext(SkinnableCharonPortal.java:1054)
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.includePortal(SkinnableCharonPortal.java:529)

Generated at Wed Sep 18 22:20:25 CDT 2019 using Jira 8.0.3#800011-sha1:073e8b433c2c0e389c609c14a045ffa7abaca10d.