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

NPE in Empty Grade Handling in LTI Advantage

    XMLWordPrintable

    Details

    • 20 status:
      Resolved
    • Test Plan:
      Hide

      devtest - send an empty grade back - don't get an NPE

      Show
      devtest - send an empty grade back - don't get an NPE

      Description

      Reported by Martin Lenord whilst investigating SAK-43893 – this JIRA will track the fix

      I have tested SAK-43893 and am getting a 500 with a null pointer exception when sending an empty grade 

      java.lang.NullPointerException
      	org.sakaiproject.basiclti.util.SakaiBLTIUtil.getAssignment(SakaiBLTIUtil.java:2338)
      	org.sakaiproject.basiclti.util.SakaiBLTIUtil.handleGradebookLTI13(SakaiBLTIUtil.java:2273)
      	org.sakaiproject.basiclti.util.SakaiBLTIUtil.deleteGradeLTI13(SakaiBLTIUtil.java:2255)
      	org.sakaiproject.lti13.LTI13Servlet.handleLineItemScore(LTI13Servlet.java:734)
      	org.sakaiproject.lti13.LTI13Servlet.doPost(LTI13Servlet.java:284)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:475)
      

      I am getting this in both our Turnitin integration and Gradescope integration 

      score is being sent to https://dev1.sakaicloud.com/imsblis/lti13/lineitem/db4a8862b3b109588419d6a96909787370648898a38cc67d4c5eaddbffd15e13:::Martins-Site:::content:68/scores

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  csev Charles Severance
                  Reporter:
                  csev Charles Severance
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration