mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-12 00:38:51 +00:00
Avoid crashes on broken configurations
This commit is contained in:
@@ -1034,6 +1034,11 @@
|
||||
// Recipient is fixed, which is the calendar owner
|
||||
ownerUser = [SOGoUser userWithLogin: self->owner];
|
||||
recipientIdentity = [ownerUser primaryIdentity];
|
||||
|
||||
// Safety net for broken configurations
|
||||
if (!recipientIdentity)
|
||||
return;
|
||||
|
||||
recipientEmail = [recipientIdentity objectForKey: @"email"];
|
||||
fullRecipientEmail = [recipientIdentity keysWithFormat: @"%{fullName} <%{email}>"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user