Uploaded image for project: 'LAMS Development'
  1. LAMS Development
  2. LDEV-4933

Exception on exporting lesson Excel file from Gradebook

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0, 3.2, 3.1
    • Fix Version/s: 4.0, 3.2, 3.1
    • Component/s: Gradebook
    • Labels:
      None

      Description

      When trying to export Excel file for a lesson from Gradebook and one of the lesson learners has gradebookUserLesson available but its marks is null, we get the following exception:
      java.lang.NullPointerException
              at deployment.lams.ear//org.lamsfoundation.lams.gradebook.service.GradebookService.exportLessonGradebook(GradebookService.java:1197)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.springframework@4.3.12.RELEASE//org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
              at org.springframework@4.3.12.RELEASE//org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
              at org.springframework@4.3.12.RELEASE//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
              at org.springframework@4.3.12.RELEASE//org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
              at org.springframework@4.3.12.RELEASE//org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
              at org.springframework@4.3.12.RELEASE//org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
              at org.springframework@4.3.12.RELEASE//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
              at deployment.lams.ear//org.lamsfoundation.lams.web.filter.TransactionRetryInterceptor.invoke(TransactionRetryInterceptor.java:59)
              at org.springframework@4.3.12.RELEASE//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
              at org.springframework@4.3.12.RELEASE//org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
              at deployment.lams.ear.lams-gradebook.war//com.sun.proxy.$Proxy288.exportLessonGradebook(Unknown Source)
              at deployment.lams.ear//org.lamsfoundation.lams.gradebook.web.controller.GradebookMonitoringController.exportExcelLessonGradebook(GradebookMonitoringController.java:296)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        Activity

        Hide
        dronych Andrey Balan added a comment -
        Fixed
        Show
        dronych Andrey Balan added a comment - Fixed
        Hide
        ernieg Ernie Ghiglione added a comment -
        Thanks Andrey
        Show
        ernieg Ernie Ghiglione added a comment - Thanks Andrey

          People

          • Assignee:
            dronych Andrey Balan
            Reporter:
            dronych Andrey Balan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development