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

OO-1375: the edit button can be null

parent 12d224f0
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,9 @@ public class EPMapViewController extends BasicController implements Activateable
}
initForm(ureq);
editMode = EditMode.view;
editButton.setCustomDisplayText(translate("map.editButton.on"));
if(editButton != null) {
editButton.setCustomDisplayText(translate("map.editButton.on"));
}
if(currentEditedStructure != null && pageCtrl != null) {
EPPage page = getSelectedPage(currentEditedStructure);
if(page != null) {
......
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