Skip to content

Commit

Permalink
refs #74 fix error when user ID is null in activity provider
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier committed Aug 7, 2021
1 parent 19089e2 commit a401307
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Activity/CospendProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public function __construct(IURLGenerator $urlGenerator,
$this->config = $config;
$this->groupManager = $groupManager;
$this->appManager = $appManager;
$this->projectNames = $projectService->getProjectNames($userId);
$this->projectNames = [];
if (!is_null($userId)) {
$this->projectNames = $projectService->getProjectNames($userId);
}
}

/**
Expand Down

0 comments on commit a401307

Please sign in to comment.