From: Joas Schilling Date: Thu, 26 Mar 2020 12:49:47 +0000 (+0100) Subject: Also bail out when the path is actually null X-Git-Tag: v19.0.0beta3~17^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=51d174a40bf6d638cf0e064a88b50d160611fe17;p=nextcloud-server.git Also bail out when the path is actually null Apparently this can happen when a external mount was shared that is later not available anymore Signed-off-by: Joas Schilling --- diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index e7f077f4022..6a6b39526d2 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -831,7 +831,7 @@ class DefaultShareProvider implements IShareProvider { */ private function isAccessibleResult($data) { // exclude shares leading to deleted file entries - if ($data['fileid'] === null) { + if ($data['fileid'] === null || $data['path'] === null) { return false; }