Skip to content

Commit

Permalink
fix(calendar): generate missing UID when importing calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Sep 7, 2021
1 parent 9f38201 commit e43a721
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SoObjects/Appointments/SOGoAppointmentFolder.m
Original file line number Diff line number Diff line change
Expand Up @@ -3367,7 +3367,8 @@ - (NSString *) importComponent: (iCalEntityObject *) event
// we generate a new UID based on a GUID
uid = [event uid];

if ([uid rangeOfCharacterFromSet: [NSCharacterSet characterSetWithCharactersInString: @"+/"]].location != NSNotFound)
if (![uid length] ||
[uid rangeOfCharacterFromSet: [NSCharacterSet characterSetWithCharactersInString: @"+/"]].location != NSNotFound)
{
uid = [self globallyUniqueObjectId];
[event setUid: uid];
Expand Down

0 comments on commit e43a721

Please sign in to comment.