Skip to content
Snippets Groups Projects
Commit ad14aa79 authored by srosse's avatar srosse
Browse files

OO-1110: return always an empty group list from the course environment instead of null

parent f067ed76
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@
package org.olat.course.run.userview;
import java.util.Collections;
import java.util.List;
import org.olat.core.commons.persistence.PersistenceHelper;
......@@ -175,14 +176,23 @@ public class UserCourseEnvironmentImpl implements UserCourseEnvironment {
}
public List<BusinessGroup> getCoachedGroups() {
if(coachedGroups == null) {
return Collections.emptyList();
}
return coachedGroups;
}
public List<BusinessGroup> getParticipatingGroups() {
if(participatingGroups == null) {
return Collections.emptyList();
}
return participatingGroups;
}
public List<BusinessGroup> getWaitingLists() {
if(waitingLists == null) {
return Collections.emptyList();
}
return waitingLists;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment