Skip to content

Commit

Permalink
Merge pull request #2167 from nextcloud/backport/2163/stable28
Browse files Browse the repository at this point in the history
[stable28] Don't check display name on null
  • Loading branch information
AndyScherzinger committed Dec 5, 2023
2 parents 4da520b + 013b344 commit a318ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Album/AlbumMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ public function getCollaborators(int $albumId): array {

switch ($row['collaborator_type']) {
case self::TYPE_USER:
$displayName = $this->userManager->get($row['collaborator_id'])->getDisplayName();
$displayName = $this->userManager->get($row['collaborator_id'])?->getDisplayName();
break;
case self::TYPE_GROUP:
$displayName = $this->groupManager->get($row['collaborator_id'])->getDisplayName();
$displayName = $this->groupManager->get($row['collaborator_id'])?->getDisplayName();
break;
case self::TYPE_LINK:
$displayName = $this->l->t('Public link');
Expand Down

0 comments on commit a318ee7

Please sign in to comment.