Skip to content

Commit cc658d5

Browse files
[BUGFIX] Call to a member function getAttribute() on null in PolicyMutatedEventListener.php:30 when opening CSP backend module
1 parent 84c048e commit cc658d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/EventListener/PolicyMutatedEventListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __invoke(PolicyMutatedEvent $event): void
2727
}
2828

2929
/** @var ?ExtbaseModule $module */
30-
$module = $event->request->getAttribute('module');
30+
$module = $event->request?->getAttribute('module');
3131

3232
// only for cs_seo web module
3333
if($module instanceof ExtbaseModule && str_starts_with($module->getIdentifier(), ModuleWebController::$mod_name)) {
@@ -41,4 +41,4 @@ public function __invoke(PolicyMutatedEvent $event): void
4141
$event->setCurrentPolicy($policy);
4242
}
4343
}
44-
}
44+
}

0 commit comments

Comments
 (0)