Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-32746

Sometimes the anonymous return from SAK-32738 is null

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 11.5 [Tentative]
    • Fix Version/s: 11.5 [Tentative]
    • Component/s: Portal
    • Labels:
      None
    • 11 status:
      Resolved
    • Test Plan:
      Hide

      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.

      Show
      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)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  jonespm Matthew Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: