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

OO-1111: check if the container exists first

parent ad14aa79
No related branches found
No related tags found
No related merge requests found
......@@ -346,7 +346,7 @@ public class SinglePageController extends BasicController implements CloneableCo
public void event(UserRequest ureq, Component source, Event event) {
if (source == editLink) {
if (event.getCommand().equals(COMMAND_EDIT)) {
if (g_curURI == null || g_new_rootContainer.resolve(g_curURI) == null) {
if (g_curURI == null || g_new_rootContainer == null || g_new_rootContainer.resolve(g_curURI) == null) {
showError("error.pagenotfound");
return;
}
......
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