From c4d669d37aea2e2ec2572e9b01b60d71debcc77f Mon Sep 17 00:00:00 2001 From: yemkareems Date: Wed, 8 Oct 2025 09:30:35 +0530 Subject: [PATCH] fix: add null check to guest to allow the repair step to continue Signed-off-by: yemkareems --- lib/Repair/ResetEmails.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Repair/ResetEmails.php b/lib/Repair/ResetEmails.php index 616b41ad..21aef42d 100644 --- a/lib/Repair/ResetEmails.php +++ b/lib/Repair/ResetEmails.php @@ -39,6 +39,9 @@ public function run(IOutput $output) { foreach ($this->guestManager->listGuests() as $guestId) { $guest = $this->userManager->get($guestId); + if ($guest === null) { + continue; + } $expectedEmail = $this->config->getUserValue($guestId, Application::APP_ID, 'email', strtolower($guestId)); if (strtolower($guest?->getSystemEMailAddress() ?? '') !== $expectedEmail) { $this->config->setUserValue($guestId, 'guests', 'old_email', $guest?->getSystemEMailAddress() ?? '');