From 8ff189229b72ba9318d9bc5bbd7dc97648e46fe0 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 5 Apr 2017 16:22:28 -0400 Subject: [PATCH] [web] Fix exception when partstate is not known --- UI/Scheduler/UIxCalListingActions.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index 5c17f22a0..372ebf6aa 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -315,6 +315,7 @@ static NSArray *tasksFields = nil; { NSArray *mails, *states; NSMutableArray *statesDescription; + NSString *description; iCalPersonPartStat stat; NSUInteger count, max; @@ -336,7 +337,9 @@ static NSArray *tasksFields = nil; for (count = 0; count < max; count++) { stat = (states ? [[states objectAtIndex: count] intValue] : 0); - [statesDescription addObject: [[iCalPerson descriptionForParticipationStatus: stat] lowercaseString]]; + description = [iCalPerson descriptionForParticipationStatus: stat]; + if (description == nil) description = @""; + [statesDescription addObject: [description lowercaseString]]; } if (max > 0)