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

Samigo getAssessmentGradingByItemGradingId() throwing an NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.0, 12.1, 19.0
    • Fix Version/s: 12.2, 19.0
    • Labels:
      None
    • 12 status:
      Resolved
    • Test Plan:
      Hide
      1. Samigo create an assessment with 2 question types that, one that can be auto scored and another that can't i.e. a multiple choice question and an essay question
      2. publish the assessment
      3. students take the assessment
      4. after a submission by students as instructor click Scores -> Total Scores -> attempt to grade student
      5. also Scores -> Question -> attempt to grade essay
      6. grades should be recorded
      Show
      Samigo create an assessment with 2 question types that, one that can be auto scored and another that can't i.e. a multiple choice question and an essay question publish the assessment students take the assessment after a submission by students as instructor click Scores -> Total Scores -> attempt to grade student also Scores -> Question -> attempt to grade essay grades should be recorded

      Description

      Stack trace showing an error in HashMap.merge

      see https://bugs.openjdk.java.net/browse/JDK-8148463

       

      Caused by: java.lang.NullPointerException
               at java.util.HashMap.merge(HashMap.java:1225)
               at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
               at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
               at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
               at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
               at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
               at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
               at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
               at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
               at org.sakaiproject.tool.assessment.facade.AssessmentGradingFacadeQueries.getAssessmentGradingByItemGradingId(AssessmentGradingFacadeQueries.java:1444)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ern Earle R Nietzel
                Reporter:
                ern Earle R Nietzel
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code