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

OO-559: fix RS if a use try to open the catalog at a deleted catalog entry

parent 7c8ef396
No related branches found
No related tags found
No related merge requests found
......@@ -1197,6 +1197,7 @@ public class CatalogController extends BasicController implements Activateable2
Long catId = catCe.getOLATResourceable().getResourceableId();
if(catId == null || catId.longValue() == 0l) return;//nothing to do
CatalogEntry ce = CatalogManager.getInstance().loadCatalogEntry(catId);
if(ce == null) return;//catalog entry not found, do nothing
switch(ce.getType()) {
case CatalogEntry.TYPE_NODE: {
reloadHistoryStack(ureq, catId);
......
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