From 762b841249fdff7cf3412414f703ab465c15583a Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 21 Jan 2014 16:40:57 -0500 Subject: [PATCH] Avoid crashes on broken configurations --- SoObjects/Appointments/SOGoCalendarComponent.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 2169f8f6e..117812ef1 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -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}>"];