diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 7f217e7d3..70eea2a91 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -131,6 +131,9 @@ public function prepare(INotification $notification, string $languageCode): INot protected function getSubject(INotification $notification, string $languageCode): string { $l = $this->factory->get('firstrunwizard', $languageCode); $user = $this->userManager->get($notification->getUser()); + if ($user === null) { + return ''; + } $email = $user->getEMailAddress(); if ($email === null || $email === '') {