Skip to content

Commit

Permalink
fix(calendar): When an event has no date (weird case), it is not poss…
Browse files Browse the repository at this point in the history
…ible to remove the event (NSException)
  • Loading branch information
WoodySlum committed Aug 14, 2023
1 parent e959583 commit 4d2c771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/Scheduler/UIxAppointmentEditor.m
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ - (void) _removeAttendees: (NSArray *) emails
attachUrls = [self attachUrls];
if ([attachUrls count]) [data setObject: attachUrls forKey: @"attachUrls"];

if (!isAllDay)
if (!isAllDay && eventStartDate && eventStartDate)
{
[data setObject: [dateFormatter formattedTime: eventStartDate] forKey: @"localizedStartTime"];
[data setObject: [dateFormatter formattedTime: eventEndDate] forKey: @"localizedEndTime"];
Expand Down

0 comments on commit 4d2c771

Please sign in to comment.