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

OO-1452: hardened the activate method against null

parent 53671eec
No related branches found
No related tags found
No related merge requests found
......@@ -893,7 +893,10 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
} else if(type != null && type.startsWith("path=")) {
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) {
String path = BusinessControlFactory.getInstance().getPath(entries.get(0));
doCourseFolder(ureq).activatePath(ureq, path);
FolderRunController folderCtrl = doCourseFolder(ureq);
if(folderCtrl != null) {
folderCtrl.activatePath(ureq, path);
}
}
}
}
......
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