From 94d96cad9015c5e40fc39f22b3dc61ef45eca395 Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Wed, 14 Jun 2017 16:09:24 +0200 Subject: [PATCH] OO-2820: don't summarize sections if they are hidden --- .../ims/qti21/ui/AssessmentResultController.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/olat/ims/qti21/ui/AssessmentResultController.java b/src/main/java/org/olat/ims/qti21/ui/AssessmentResultController.java index 55797ecbf28..22384ff38a1 100644 --- a/src/main/java/org/olat/ims/qti21/ui/AssessmentResultController.java +++ b/src/main/java/org/olat/ims/qti21/ui/AssessmentResultController.java @@ -354,11 +354,13 @@ public class AssessmentResultController extends FormBasicController { TestPlanNode section = node.getParent(); Results sectionResults = resultsMap.get(section); - sectionResults.addSubResults(assessmentItemResults); - if(assessmentItemResults.hasMaxScore()) { - sectionResults.addMaxScore(assessmentItemResults); - if(assessmentItemResults.hasScore()) { - sectionResults.addScore(assessmentItemResults); + if(sectionResults != null) { + sectionResults.addSubResults(assessmentItemResults); + if(assessmentItemResults.hasMaxScore()) { + sectionResults.addMaxScore(assessmentItemResults); + if(assessmentItemResults.hasScore()) { + sectionResults.addScore(assessmentItemResults); + } } } } -- GitLab