From 78292495bb3cdbdcab7922a3ff68df22ff58e176 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 27 Feb 2020 14:46:21 -0500 Subject: [PATCH] fix(calendar(core)): check for array size before looking into --- SoObjects/Appointments/SOGoAppointmentObject.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index b6367b9e0..25d3bdf10 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -2258,7 +2258,7 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent if (!oldEvent && !newEvent) { // We check if we only have to deal with the MASTER event - if ([newEvents count] == [oldEvents count]) + if ([oldEvents count] && [newEvents count] == [oldEvents count]) { oldEvent = [oldEvents objectAtIndex: 0]; newEvent = [newEvents objectAtIndex: 0];