Merge pull request #20336 from nextcloud/backport/19655/stable17

[stable17] Catch NotFoundException when getting the user folder
This commit is contained in:
Roeland Jago Douma 2020-04-06 20:54:34 +02:00 committed by GitHub
commit 4a92a22d14
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'];
$folder = $argument['folder'];
$userFolder = $this->rootFolder->getUserFolder($uid);
$userRoot = $userFolder->getParent();
try {
$userFolder = $this->rootFolder->getUserFolder($uid);
$userRoot = $userFolder->getParent();
/** @var Folder $uploads */
$uploads = $userRoot->get('uploads');
/** @var Folder $uploadFolder */