aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dashboard/lib/Service/BackgroundService.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dashboard/lib/Service/BackgroundService.php')
-rw-r--r--apps/dashboard/lib/Service/BackgroundService.php3
1 files changed, 3 insertions, 0 deletions
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);