Skip to content

Commit

Permalink
Collaboration, MailPlugin: Protect access to a potentially missing ar…
Browse files Browse the repository at this point in the history
…ray component by ??.

Signed-off-by: Claus-Justus Heine <[email protected]>
  • Loading branch information
rotdrop committed Feb 1, 2022
1 parent d635d58 commit 710c3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Collaboration/Collaborators/MailPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult) {

if ($this->shareeEnumeration) {
try {
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]??'');
} catch (\InvalidArgumentException $e) {
continue;
}
Expand Down

0 comments on commit 710c3cc

Please sign in to comment.