Skip to content

Commit f1537a4

Browse files
authored
Merge pull request #2168 from nextcloud/backport/2163/stable27
[stable27] Don't check display name on null
2 parents 418b480 + e34c8c5 commit f1537a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Album/AlbumMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,10 @@ public function getCollaborators(int $albumId): array {
353353

354354
switch ($row['collaborator_type']) {
355355
case self::TYPE_USER:
356-
$displayName = $this->userManager->get($row['collaborator_id'])->getDisplayName();
356+
$displayName = $this->userManager->get($row['collaborator_id'])?->getDisplayName();
357357
break;
358358
case self::TYPE_GROUP:
359-
$displayName = $this->groupManager->get($row['collaborator_id'])->getDisplayName();
359+
$displayName = $this->groupManager->get($row['collaborator_id'])?->getDisplayName();
360360
break;
361361
case self::TYPE_LINK:
362362
$displayName = $this->l->t('Public link');

0 commit comments

Comments
 (0)