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

NPE in getTFMCScores() exporting results to spreadsheett

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.8.0
    • Labels:
      None
    • Previous Issue Keys:
      SAK-17403, SAM-1026

      Description

      Exporting one particular assessment (local ref VULA-675), we get an NPE as such:

      java.lang.NullPointerException
      at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.getTFMCScores(HistogramListener.java:1090)
      at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.doAnswerStatistics(HistogramListener.java:644)
      at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.determineResults(HistogramListener.java:607)
      at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.histogramScores(HistogramListener.java:372)
      at org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener.getDetailedStatisticsSpreadsheetData(HistogramListener.java:1939)
      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:174)

      Matched against the source, this appears to be an NPE in getTFMCScores() here:

      // NEW
      int[] heights = calColumnHeight(numarray, responses);
      // int[] heights = calColumnHeight(numarray);
      for (i = 0; i < bars.length; i++)
      bars[i].setColumnHeight(Integer.toString(heights[i]));

      from a null value of bars[i] for some value of i.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  smarquard Stephen Marquard
                  Reporter:
                  smarquard Stephen Marquard
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code