Merge pull request #29304 from JanBartels/master

This commit is contained in:
John Molakvoæ 2021-10-22 11:33:03 +02:00 committed by GitHub
commit 867579ced2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1667,7 +1667,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();