NPE on MyOfficialEnrolments
GENERAL
TESTING
GENERAL
TESTING
Description
relates to
Activity
Show:

Matthew Jones August 2, 2017 at 2:39 PM
Marking this NPE as verified.

Brian J. July 17, 2017 at 12:08 PM
I haven't been able to reproduce this locally and it doesn't seem like we've experienced this in production either.
I'm going to submit a PR with some NPE protection, but I'm still curious as to the situation that's causing this. I don't see anything obvious in the getSectionEnrolments() method that would put a null object into the cache map.
If you have any ideas, or can isolate a specific user or set of steps to reproduce this, I'd be interested to hear it!
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?