Skip to content

Commit

Permalink
Patch for NULL-pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBartels committed Oct 13, 2021
1 parent 7aa440b commit 07c167e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@ public function getAccessList(\OCP\Files\Node $path, $recursive = true, $current
if ($path->getId() !== $userFolder->getId() && !$userFolder->isSubNode($path)) {
$nodes = $userFolder->getById($path->getId());
$path = array_shift($nodes);
if ($path->getOwner() === null) {
if ($path === null || $path->getOwner() === null) {
return [];
}
$owner = $path->getOwner()->getUID();
Expand Down

0 comments on commit 07c167e

Please sign in to comment.