aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorStefan Cherniakov <luka-sama@pm.me>2024-09-02 21:58:03 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-09-03 17:23:31 +0200
commit2685501231821be2f7ca72568bedd5571fe0eef2 (patch)
tree965a91f485f9dd1dbb25f637b961180543ff54eb /apps
parent457eaee2b31c1baa7ec7386f1b53f84e8a87f146 (diff)
downloadnextcloud-server-2685501231821be2f7ca72568bedd5571fe0eef2.tar.gz
nextcloud-server-2685501231821be2f7ca72568bedd5571fe0eef2.zip
fix(files_sharing): Add check for null
Signed-off-by: Stefan Cherniakov <luka-sama@pm.me>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/SharesReminderJob.php3
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', [