Browse Source

Potential crash fix.

master
Abhi 2 years ago
parent
commit
c46b863e69
  1. 2
      Clocker/Events and Reminders/CalendarHandler.swift

2
Clocker/Events and Reminders/CalendarHandler.swift

@ -198,7 +198,7 @@ extension EventCenter {
for date in eventsForDate.keys {
if let events = eventsForDate[date] {
for event in events {
if selectedCalendars.contains(event.event.calendar.calendarIdentifier) {
if event.event.calendar != nil && selectedCalendars.contains(event.event.calendar.calendarIdentifier) {
if filteredEvents[date] == nil {
filteredEvents[date] = Array()
}

Loading…
Cancel
Save