Skip to content

Commit 867579c

Browse files
authored
Merge pull request #29304 from JanBartels/master
2 parents a9fe0fc + 9068fd4 commit 867579c

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
@@ -1667,7 +1667,7 @@ public function getAccessList(\OCP\Files\Node $path, $recursive = true, $current
16671667
if ($path->getId() !== $userFolder->getId() && !$userFolder->isSubNode($path)) {
16681668
$nodes = $userFolder->getById($path->getId());
16691669
$path = array_shift($nodes);
1670-
if ($path->getOwner() === null) {
1670+
if ($path === null || $path->getOwner() === null) {
16711671
return [];
16721672
}
16731673
$owner = $path->getOwner()->getUID();

0 commit comments

Comments
 (0)