diff --git a/apps/dashboard/lib/Service/BackgroundService.php b/apps/dashboard/lib/Service/BackgroundService.php index 1247690a4f98e4e9fc81a4f9ad0c4f7c56448423..2046513851f277f9caaa41b1d987daef6672a6f9 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);