]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix loading as guest
authorJulius Härtl <jus@bitgrid.net>
Fri, 14 Aug 2020 13:25:55 +0000 (15:25 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 19 Aug 2020 15:07:26 +0000 (17:07 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/dashboard/lib/Service/BackgroundService.php

index 1247690a4f98e4e9fc81a4f9ad0c4f7c56448423..2046513851f277f9caaa41b1d987daef6672a6f9 100644 (file)
@@ -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);