diff options
-rw-r--r-- | apps/files_sharing/lib/SharesReminderJob.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/SharesReminderJob.php b/apps/files_sharing/lib/SharesReminderJob.php index 6f7a379ac36..9682f7fc770 100644 --- a/apps/files_sharing/lib/SharesReminderJob.php +++ b/apps/files_sharing/lib/SharesReminderJob.php @@ -132,6 +132,9 @@ class SharesReminderJob extends TimedJob { $reminderInfo = []; if ($share->getShareType() == IShare::TYPE_USER) { $user = $this->userManager->get($sharedWith); + if ($user === null) { + return null; + } $reminderInfo['email'] = $user->getEMailAddress(); $reminderInfo['userLang'] = $this->l10nFactory->getUserLanguage($user); $reminderInfo['folderLink'] = $this->urlGenerator->linkToRouteAbsolute('files.view.index', [ |