You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issues occurs on iOS 16.2 if I find an event in my calendar which does not have any recurrence rules (recurrence is an optional field when creating an event in the calendar).
from the Stacktrace:
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught Error: *** -[__NSArrayI_Transfer objectAtIndex:]: index 0 beyond bounds for empty array
In the current code I found a null-check for recurrence rules which should prevent returning the first element of the array. However, on iOS 16.2 recurrence rules are empty, not null - so there comes the exception.
let recurrence: Recurrence;
if (ekEvent.recurrenceRules !== null) {
// just grab the first rule as we return only one anyway
const ekRecurrenceRule: EKRecurrenceRule = ekEvent.recurrenceRules.objectAtIndex(0);
Already tested on iOS 13 and 14 - Here the recurrence rules are null, so the current check works.
The text was updated successfully, but these errors were encountered:
The issues occurs on iOS 16.2 if I find an event in my calendar which does not have any recurrence rules (recurrence is an optional field when creating an event in the calendar).
from the Stacktrace:
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught Error: *** -[__NSArrayI_Transfer objectAtIndex:]: index 0 beyond bounds for empty array
In the current code I found a null-check for recurrence rules which should prevent returning the first element of the array. However, on iOS 16.2 recurrence rules are empty, not null - so there comes the exception.
Already tested on iOS 13 and 14 - Here the recurrence rules are null, so the current check works.
The text was updated successfully, but these errors were encountered: