Stack trace when exporting assessment results which have unanswered calculated questions

Description

Steps to reproduce the issue:

1. The instructor publishes an assessment which have any calculated question.
2. The student takes the assessment and submits it without answers the calculated question.
3. The instructor try to export the assessment results by clicking the "Export" button. Samigo throws the next stack trace in the application logs and the export doesn't work.

SEVERE: java.lang.NullPointerException
at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.getCalculatedQuestionScores(HistogramListener.java:1830)
at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.doAnswerStatistics(HistogramListener.java:906)
at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.determineResults(HistogramListener.java:812)
at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.histogramScores(HistogramListener.java:457)
at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.getDetailedStatisticsSpreadsheetData(HistogramListener.java:2879)
at org.sakaiproject.tool.assessment.ui.bean.evaluation.ExportResponsesBean.getSpreadsheetData(ExportResponsesBean.java:181)
at org.sakaiproject.tool.assessment.ui.bean.evaluation.ExportResponsesBean.exportExcel(ExportResponsesBean.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ...

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 808 from git (enietzel@anisakai.com: rev 320400)

Alexandre Ballesté Crevillén July 15, 2015 at 12:58 AM

tested in nighly trunk-oracle.nightly.sakaiproject.org. Works fine.

Alexandre Ballesté Crevillén July 3, 2015 at 2:11 AM

Tested sakai-trunk.atica.um.es. Works fine. Ready for PR.

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Labels

Created May 25, 2015 at 4:04 AM
Updated April 17, 2018 at 8:26 AM
Resolved July 6, 2015 at 5:14 PM