From 2535e0ec044b0500edf9b00afb544da5c69bf8eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Fri, 14 Aug 2020 15:25:55 +0200 Subject: [PATCH] Fix loading as guest MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dashboard/lib/Service/BackgroundService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dashboard/lib/Service/BackgroundService.php b/apps/dashboard/lib/Service/BackgroundService.php index 1247690a4f9..2046513851f 100644 --- a/apps/dashboard/lib/Service/BackgroundService.php +++ b/apps/dashboard/lib/Service/BackgroundService.php @@ -65,6 +65,9 @@ class BackgroundService { ]; public function __construct(IRootFolder $rootFolder, IAppData $appData, $userId) { + if ($userId === null) { + return; + } $this->userFolder = $rootFolder->getUserFolder($userId); try { $this->dashboardUserFolder = $appData->getFolder($userId); -- 2.39.5