Hi,
Another crash in iOS 12 in the event editor seen in the below stacktrace. This time it seems to be intent donation that appears to be happening automatically when using the event editor. It is adding the calendar for the event to a dictionary as part of the donation and then the calendar is nil. But I don't even present the event editor if the calendar is nil as I have this check before:
if (event.calendar.allowsContentModifications) {
editorOrViewer = [self newEditEventController:event];
}
This is only affecting a few users but it would be great to know why this is happening nonetheless.
Any ideas would be appreciated!
/Mark
Fatal Exception: NSInvalidArgumentException
*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: calendar)
0 CoreFoundation 0x1bbb6bef8 __exceptionPreprocess
1 libobjc.A.dylib 0x1bad39a40 objc_exception_throw
2 CoreFoundation 0x1bbae185c _CFArgv
3 CoreFoundation 0x1bba54f60 -[__NSDictionaryM setObject:forKey:]
4 EventKitUI 0x1cd725e1c +[EKUIDuetSignalEventSerializer serializedEventWithEvent:]
5 EventKitUI 0x1cd66964c -[EKUIEventActionHandler _intentForAction:onEvent:]
6 EventKitUI 0x1cd669714 -[EKUIEventActionHandler donateInteractionForAction:onEvent:]
7 EventKitUI 0x1cd6e9d34 -[EKEventEditor setEvent:]
8 EventKitUI 0x1cd63f440 -[EKEventEditViewController setEvent:]
9 CalendarPlus 0x10240ea84 -[CalendarUIViewController newEditEventController:] (CalendarUIViewController.m:1386)
10 CalendarPlus 0x1024050a0 -[CalendarUIViewController receiveNotification:] (CalendarUIViewController.m:216)
11 CoreFoundation 0x1bbad8d14 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__