diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index a6a1c3ffa..4e6711fb8 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -1491,7 +1491,8 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir // replace the date range if (r) { - [baseWhere removeLastObject]; + if ([baseWhere count] > 1) + [baseWhere removeLastObject]; dateSqlString = [self _sqlStringRangeFrom: _startDate to: endDate cycle: YES];