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

NPE on MyOfficialEnrolments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.0
    • Fix Version/s: 12.0
    • Component/s: Membership
    • Labels:
      None

      Description

      As described in SAK-32087, we hit this stack trace on the "My Official Enrollments" tab somehow. It doesn't always happen so seems to be something wrong with the cache. This line 113 expects the cache to be populated by getSectionEnrolments (checks in an if before) but doesn't check again and might not be populated correctly?

      60516 Caused by: java.lang.NullPointerException
      60517        at org.sakaiproject.site.tool.MembershipAction.sizeResources(MembershipAction.java:113)
      60518        at org.sakaiproject.cheftool.PagedResourceActionII.prepPage(PagedResourceActionII.java:296)
      60519        at org.sakaiproject.site.tool.MembershipAction.buildMyEnrolmentsContext(MembershipAction.java:315)
      60520        at org.sakaiproject.site.tool.MembershipAction.buildMainPanelContext(MembershipAction.java:237)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  bjones86 Brian Jones
                  Reporter:
                  jonespm Matthew Jones
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration