Fix: Avoid null pointer exception

This commit is contained in:
Björn Fromme
2023-09-19 15:29:08 +02:00
parent c269880e10
commit e18afb33e9
+4
View File
@@ -13,6 +13,10 @@ class LogoutListener
public function onLogout(LogoutEvent $event): void
{
if (null === $event->getToken()) {
return;
}
$this->authenticationLogger->info('Logout', [
'user' => $event->getToken()->getUserIdentifier(),
]);