Skip to content

Commit fd35e9c

Browse files
authored
Merge pull request #29383 from nextcloud/backport/29304/stable22
2 parents 90af089 + 28cd629 commit fd35e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Share20/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1658,7 +1658,7 @@ public function getAccessList(\OCP\Files\Node $path, $recursive = true, $current
16581658
if ($path->getId() !== $userFolder->getId() && !$userFolder->isSubNode($path)) {
16591659
$nodes = $userFolder->getById($path->getId());
16601660
$path = array_shift($nodes);
1661-
if ($path->getOwner() === null) {
1661+
if ($path === null || $path->getOwner() === null) {
16621662
return [];
16631663
}
16641664
$owner = $path->getOwner()->getUID();

0 commit comments

Comments
 (0)