Export Responses button throws a stack trace when the matching item has a distractor option

Description

We believe that bug can be resolved by the patch attached in the Jira by .

Steps to reproduce the issue (please see attached images):

1. Instructor creates an assessment with a matching question which has a "distractor" option.
2. Instructor publishes the assessment.
3. The student takes the assessment.
4. The student answers the matching question by selecting the 'distractor' option.
5. The student submits the assessment.
6. Instructor tries to export the responses to an Excel file and that stack trace is displayed in the application logs:

java.lang.NullPointerException
at org.sakaiproject.tool.assessment.facade.AssessmentGradingFacadeQueries.getExportResponsesData(AssessmentGradingFacadeQueries.java:2352)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

Attachments

5

is related to

relates to

Activity

Show:

Hudson CI Server August 5, 2015 at 9:20 PM

SUCCESS: Integrated in sakai-10-java-1.7 #221 (See http://builds.sakaiproject.org:8080/job/sakai-10-java-1.7/221/)
merge PR 720 from git (enietzel@anisakai.com: rev 320401)

Alexandre Ballesté Crevillén July 3, 2015 at 1:22 AM

Verified in trunk-oracle.nightly.sakaiproject.org

Raúl Sánchez Vegas June 16, 2015 at 8:12 AM

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Labels

Created May 22, 2015 at 8:47 AM
Updated April 17, 2018 at 8:25 AM
Resolved June 25, 2015 at 5:17 AM