Skip to content
Snippets Groups Projects
Commit 95d271ed authored by Jens Köster's avatar Jens Köster
Browse files

[HOTFIX] Fix for empty menus causing exception

parent 75b339c7
Branches develop
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ class RenderController extends AbstractWidgetController
/** @var Menu $menu */
$menu = $this->menuRepository->findByIdentifier($this->widgetConfiguration['uid']);
if (!$this->widgetConfiguration['disableSecurityCheck']) {
if (!is_null($menu) && !$this->widgetConfiguration['disableSecurityCheck']) {
$this->menuSecurityService->applySecurityCheck($menu);
}
......
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