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

Lessons 'require' flag for quiz throws NPE in getHighestSubmittedAssessmentGrading

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 11.3, 12.0
    • Fix Version/s: 11.3, 12.0
    • Labels:
      None
    • 11 status:
      Verified
    • Previous Issue Keys:
      SAM-3146

      Description

      For the 11.x branch, I'm observing another NPE for line 1519 in "getHighestSubmittedAssessmentGrading":

      ag.setAssessmentGradingAttachmentList(attachments);

      The 'ag' variable is null for the following scenario:

      1. On a blank Lessons page, add a published quiz (Add Content -> Link to a test or quiz).
      2. Click the "Edit" button that corresponds to the quiz on the Lessons page
      3. In the "Edit Item" dialog, check "Require that the student submit this assessment." and click "Update Item".

      An NPE should be logged in catalina.out.

      Moving ag.setAssessmentGradingAttachmentList(attachments) up into the "if (ag != null)" conditional seems to resolve this problem.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    samigoteam SAMIGO TEAM (Inactive)
                    Reporter:
                    hornersa Sean Horner
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    4 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration