summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/lib/Notification/Notifier.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Notification/Notifier.php b/apps/files_sharing/lib/Notification/Notifier.php
index 2499896653b..22cf83b5477 100644
--- a/apps/files_sharing/lib/Notification/Notifier.php
+++ b/apps/files_sharing/lib/Notification/Notifier.php
@@ -193,7 +193,7 @@ class Notifier implements INotifier {
}
$group = $this->groupManager->get($share->getSharedWith());
- if (!$group->inGroup($user)) {
+ if ($group === null || !$group->inGroup($user)) {
throw new AlreadyProcessedException();
}