From 231987242b367f3d60d45edf3ebddfda4257709f Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 16 Oct 2014 09:10:54 -0400 Subject: [PATCH] Handle empty Attendees tag --- ActiveSync/iCalEvent+ActiveSync.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ActiveSync/iCalEvent+ActiveSync.m b/ActiveSync/iCalEvent+ActiveSync.m index 95291eb11..1443df2c3 100644 --- a/ActiveSync/iCalEvent+ActiveSync.m +++ b/ActiveSync/iCalEvent+ActiveSync.m @@ -486,7 +486,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // be done automatically by the ActiveSync client when invoking MeetingResponse. if (![self userIsAttendee: [context activeUser]]) { - if ((o = [theValues objectForKey: @"Attendees"])) + // Windows phones sens sometimes an empty Attendees tag. + // We check it's an array before processing it. + if ((o = [theValues objectForKey: @"Attendees"])&& [o isKindOfClass: [NSArray class]]) { NSMutableArray *attendees; NSDictionary *attendee;