aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-14 15:25:55 +0200
committerJulius Härtl <jus@bitgrid.net>2020-08-19 17:07:26 +0200
commit2535e0ec044b0500edf9b00afb544da5c69bf8eb (patch)
treeba35bfa3be4c55c350b719ee3192c4d45d10f0eb
parent4ec0afd0e76fbba82d4d5bff606d63810fb2caa0 (diff)
downloadnextcloud-server-2535e0ec044b0500edf9b00afb544da5c69bf8eb.tar.gz
nextcloud-server-2535e0ec044b0500edf9b00afb544da5c69bf8eb.zip
Fix loading as guest
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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);