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 <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-03-26 13:49:47 +01:00
parent 902adbe159
commit 51d174a40b
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -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;
}