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

Null assesmentId leads to NumberFormatException

    Details

    • 2.9 Status:
      Merge
    • Previous Issue Keys:
      SAM-1995

      Description

      Seen in production:

      caused by: java.lang.RuntimeException: java.lang.NumberFormatException: For input string: ""
      at org.sakaiproject.tool.assessment.ui.listener.evaluation.TotalScoreListener.processAction(TotalScoreListener.java:120)
      caused by: java.lang.NumberFormatException: For input string: ""
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Long.parseLong(Long.java:431)
      at java.lang.Long.valueOf(Long.java:525)
      at org.sakaiproject.tool.assessment.services.assessment.PublishedAssessmentService.getPublishedAssessment(PublishedAssessmentService.java:192)
      at org.sakaiproject.tool.assessment.ui.listener.evaluation.TotalScoreListener.processAction(TotalScoreListener.java:120)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)

      While the cause is not clear the PublishedAssesmentService method should throw an IllegalArgumentException if the assesmentId is null

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                dhorwitz David Horwitz
                Reporter:
                dhorwitz David Horwitz
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration