]> source.dussan.org Git - nextcloud-server.git/commitdiff
Catch NotFoundException when getting the user folder 20337/head
authorJulius Härtl <jus@bitgrid.net>
Wed, 26 Feb 2020 10:20:20 +0000 (11:20 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 6 Apr 2020 16:52:03 +0000 (16:52 +0000)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/dav/lib/BackgroundJob/UploadCleanup.php

index 42262b9dc2c0e9b2dfc431b2f9c9cfafb6161bdd..0cb3e613dce34d2a74b2f7e61e224950c47058ef 100644 (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 */