]> source.dussan.org Git - nextcloud-server.git/commitdiff
Catch NotFoundException when getting the user folder 20335/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:51:52 +0000 (16:51 +0000)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/dav/lib/BackgroundJob/UploadCleanup.php

index 2e6d6edf088e1367c59bf33ed7cabde0320b1aef..bb8125a01d64f3c1bc4898f0d4d2fa17865cceb2 100644 (file)
@@ -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 */