diff --git a/src/main/java/org/olat/modules/forms/ui/CompareEvaluationsFormController.java b/src/main/java/org/olat/modules/forms/ui/CompareEvaluationsFormController.java index 6578a59d02dfff016f0c7edf4432fa7c2647e0a6..c8eb2c6cbad6890c5225424a1bae7ab749531229 100644 --- a/src/main/java/org/olat/modules/forms/ui/CompareEvaluationsFormController.java +++ b/src/main/java/org/olat/modules/forms/ui/CompareEvaluationsFormController.java @@ -239,18 +239,19 @@ public class CompareEvaluationsFormController extends FormBasicController { } String responseIdentifier = slider.getId(); List<EvaluationFormResponse> responses = identifierToResponses.get(responseIdentifier); - - for(EvaluationFormResponse response:responses) { - EvaluationFormSession responseSession = response.getSession(); - if(!series.containsKey(responseSession)) { - Identity identity = responseSession.getIdentity(); - String legend = getLegend(identity); - String color = evaluatorToColors.get(identity); - series.put(responseSession, new RadarSeries(legend, color)); - } - if(response.getNumericalResponse() != null ) { - double value = response.getNumericalResponse().doubleValue(); - series.get(responseSession).addPoint(axis, value); + if(responses != null && responses.size() > 0) { + for(EvaluationFormResponse response:responses) { + EvaluationFormSession responseSession = response.getSession(); + if(!series.containsKey(responseSession)) { + Identity identity = responseSession.getIdentity(); + String legend = getLegend(identity); + String color = evaluatorToColors.get(identity); + series.put(responseSession, new RadarSeries(legend, color)); + } + if(response.getNumericalResponse() != null ) { + double value = response.getNumericalResponse().doubleValue(); + series.get(responseSession).addPoint(axis, value); + } } } }