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

Missing NPE check in edu-services (gradebook) category leads to NPE

    XMLWordPrintable

    Details

    • 2.9 Status:
      Resolved

      Description

      Missing NPE check for assign.getPointsPossible on outer loop can cause NPE as it's only checked in inner loop after it's dereferenced and fails making gradebook unusable.

      Not super sure how you can get it set to a null points possible. Instructor said something about importing from spreadsheet and deleting grades. Just better to have it than not!

      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
      a:411)
      caused by: java.lang.NullPointerException
      at org.sakaiproject.tool.gradebook.Category.calculateStatistics(Category.jav
      a:272)
      at org.sakaiproject.tool.gradebook.ui.OverviewBean.init(OverviewBean.java:18
      5)
      at org.sakaiproject.tool.gradebook.ui.InitializableBean.startRenderResponse(
      InitializableBean.java:69)

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code