From 4026c4e2d9ff0da149566c601c7a3e47a038e4a0 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 9 Mar 2016 10:06:18 -0500 Subject: [PATCH] (fix) more attendee checks --- SoObjects/Appointments/SOGoAppointmentObject.m | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index da3c9a9d6..20ba63efd 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -688,10 +688,14 @@ info = [NSMutableDictionary dictionary]; conflicts = [NSMutableArray array]; - if ([currentAttendee cn]) - [info setObject: [currentAttendee cn] forKey: @"attendee_name"]; + if (currentAttendee) + { + if ([currentAttendee cn]) + [info setObject: [currentAttendee cn] forKey: @"attendee_name"]; - [info setObject: [currentAttendee rfc822Email] forKey: @"attendee_email"]; + if ([currentAttendee rfc822Email]) + [info setObject: [currentAttendee rfc822Email] forKey: @"attendee_email"]; + } for (i = 0; i < [fbInfo count]; i++) {