aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-02-28 08:51:51 +0100
committerGitHub <noreply@github.com>2020-02-28 08:51:51 +0100
commite231dd8b34050f48883c225d0c57df2c6368084d (patch)
tree6feead8bb4bc29c260fe445fe0abe2a4da74280c /apps/dav
parentc158eed9dc4f1f8d15a8d04a17df2c9328af20c6 (diff)
parent4b593cbd2536f0acd0ac387084827b2f39998e36 (diff)
downloadnextcloud-server-e231dd8b34050f48883c225d0c57df2c6368084d.tar.gz
nextcloud-server-e231dd8b34050f48883c225d0c57df2c6368084d.zip
Merge pull request #19655 from nextcloud/bugfix/noid/upload-cleanup-user-not-found
Catch NotFoundException when getting the user folder
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/BackgroundJob/UploadCleanup.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/dav/lib/BackgroundJob/UploadCleanup.php b/apps/dav/lib/BackgroundJob/UploadCleanup.php
index 2e6d6edf088..bb8125a01d6 100644
--- a/apps/dav/lib/BackgroundJob/UploadCleanup.php
+++ b/apps/dav/lib/BackgroundJob/UploadCleanup.php
@@ -55,10 +55,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 */