Merge pull request #20337 from nextcloud/backport/19655/stable16

[stable16] Catch NotFoundException when getting the user folder
This commit is contained in:
Roeland Jago Douma 2020-04-06 20:54:42 +02:00 committed by GitHub
commit 9ec55abffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -53,10 +53,9 @@ class UploadCleanup extends TimedJob {
$uid = $argument['uid']; $uid = $argument['uid'];
$folder = $argument['folder']; $folder = $argument['folder'];
$userFolder = $this->rootFolder->getUserFolder($uid);
$userRoot = $userFolder->getParent();
try { try {
$userFolder = $this->rootFolder->getUserFolder($uid);
$userRoot = $userFolder->getParent();
/** @var Folder $uploads */ /** @var Folder $uploads */
$uploads = $userRoot->get('uploads'); $uploads = $userRoot->get('uploads');
/** @var Folder $uploadFolder */ /** @var Folder $uploadFolder */