diff --git a/src/main/java/org/olat/admin/user/course/CourseOverviewController.java b/src/main/java/org/olat/admin/user/course/CourseOverviewController.java index 8e04e527f7156cba92c6cfb5fb9b3c2c3ef5376e..7127820f9140681c8846f04c6a25507ff02d595a 100644 --- a/src/main/java/org/olat/admin/user/course/CourseOverviewController.java +++ b/src/main/java/org/olat/admin/user/course/CourseOverviewController.java @@ -429,9 +429,11 @@ public class CourseOverviewController extends BasicController { List<Long> groupKeys = new ArrayList<>(); List<RepositoryEntry> repoEntryToLeave = new ArrayList<>(); for(CourseMemberView view:views) { - for(BusinessGroupShort group:view.getGroups()) { - if(!BusinessGroupManagedFlag.isManaged(group.getManagedFlags(), BusinessGroupManagedFlag.membersmanagement)) { - groupKeys.add(group.getKey()); + if(view.getGroups() != null) { + for(BusinessGroupShort group:view.getGroups()) { + if(!BusinessGroupManagedFlag.isManaged(group.getManagedFlags(), BusinessGroupManagedFlag.membersmanagement)) { + groupKeys.add(group.getKey()); + } } }