diff --git a/lib/FilesHooks.php b/lib/FilesHooks.php index e858320e6..9dc48799b 100755 --- a/lib/FilesHooks.php +++ b/lib/FilesHooks.php @@ -635,7 +635,11 @@ protected function getUserPathsFromPath($path, $uidOwner) { */ protected function getSourcePathAndOwner($path) { $view = Filesystem::getView(); - $owner = $view->getOwner($path); + try { + $owner = $view->getOwner($path); + } catch (NotFoundException $e) { + $owner = null; + } $owner = !is_string($owner) || $owner === '' ? null : $owner; $fileId = 0; $currentUser = $this->currentUser->getUID();