mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-18 21:15:57 +00:00
fix(calendar(core)): check for array size before looking into
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user