From b1c75d23ada0e953ef4b41e4d6d862348ce2edfe Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 12 Jun 2025 10:24:31 +0200 Subject: [PATCH] fix(sendDigests): catch the case that a specified user is not existing and log instead Signed-off-by: Simon L. --- lib/DigestSender.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/DigestSender.php b/lib/DigestSender.php index f79eb3af7..02d0427af 100644 --- a/lib/DigestSender.php +++ b/lib/DigestSender.php @@ -70,6 +70,11 @@ public function sendDigests(int $now): void { continue; } $userObject = $this->userManager->get($user); + if (is_null($userObject)) { + // User is not existing + $this->logger->info('Exception occurred while retreiving the user object for sending user digest email'); + continue; + } if (!$userObject->isEnabled()) { // User is disabled so do not send the email but update last sent since after enabling avoid flooding $this->updateLastSentForUser($userObject, $now);