From bd81a56e584394219f74459d66e709739a46c049 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 8 Mar 2016 10:41:49 -0500 Subject: [PATCH] (fix) make sure the attendee name is defined before using it --- SoObjects/Appointments/SOGoAppointmentObject.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index d79239658..da3c9a9d6 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -688,7 +688,9 @@ info = [NSMutableDictionary dictionary]; conflicts = [NSMutableArray array]; - [info setObject: [currentAttendee cn] forKey: @"attendee_name"]; + if ([currentAttendee cn]) + [info setObject: [currentAttendee cn] forKey: @"attendee_name"]; + [info setObject: [currentAttendee rfc822Email] forKey: @"attendee_email"]; for (i = 0; i < [fbInfo count]; i++)