mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-10 22:37:12 +00:00
[web] Fix exception when partstate is not known
This commit is contained in:
1 parent
4c1de4cecc
commit
8ff189229b
1 file changed
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user