Skip to content

Commit

Permalink
Potential crash fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
n0shake committed Apr 23, 2023
1 parent 3690ca6 commit c46b863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Clocker/Events and Reminders/CalendarHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit c46b863

Please sign in to comment.