diff --git a/src/main/java/org/olat/course/nodes/CheckListCourseNode.java b/src/main/java/org/olat/course/nodes/CheckListCourseNode.java index 27dc734b4a7430f551268590df5411746fa86832..8a3a655b44fdc119a1ce187e2ef4dfbe3fb41187 100644 --- a/src/main/java/org/olat/course/nodes/CheckListCourseNode.java +++ b/src/main/java/org/olat/course/nodes/CheckListCourseNode.java @@ -644,14 +644,16 @@ public class CheckListCourseNode extends AbstractAccessableCourseNode implements ModuleConfiguration config = getModuleConfiguration(); CheckboxManager checkboxManager = CoreSpringFactory.getImpl(CheckboxManager.class); CheckboxList list = (CheckboxList)config.get(CONFIG_KEY_CHECKBOX); - for(Checkbox checkbox:list.getList()) { - String sourceId = checkbox.getCheckboxId(); - String targetId = envMapper.getTargetUniqueKey(getIdent(), sourceId); - if(targetId == null) { - targetId = UUID.randomUUID().toString(); - envMapper.addUniqueKeyPair(getIdent(), sourceId, targetId); + if (list !=null && list.getList().size() > 0) { + for(Checkbox checkbox:list.getList()) { + String sourceId = checkbox.getCheckboxId(); + String targetId = envMapper.getTargetUniqueKey(getIdent(), sourceId); + if(targetId == null) { + targetId = UUID.randomUUID().toString(); + envMapper.addUniqueKeyPair(getIdent(), sourceId, targetId); + } + checkbox.setCheckboxId(targetId); } - checkbox.setCheckboxId(targetId); } // the ident of the course node is the same