Patch for master-branch

This commit is contained in:
JanBartels 2021-10-18 21:41:01 +02:00 committed by backportbot[bot]
parent 029d86a9ac
commit 28cd629de6

View file

@ -1658,7 +1658,7 @@ class Manager implements IManager {
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();