Merge pull request #224 from buzzdeee/maint

Fixup empty calendars, sogod crashing when it tries to call
This commit is contained in:
extrafu
2016-12-30 10:06:30 -05:00
committed by GitHub

View File

@@ -493,7 +493,7 @@ static NSArray *tasksFields = nil;
for (i = 0; i < count; i++)
{
currentInfo = [newInfoForComponent objectAtIndex: i];
if ([currentInfo respondsToSelector: @selector (stringByEscapingHTMLString)])
if (![currentInfo isEqual:[NSNull null]] && [currentInfo respondsToSelector: @selector (stringByEscapingHTMLString)])
[newInfoForComponent replaceObjectAtIndex: i withObject: [currentInfo stringByEscapingHTMLString]];
}
[infos addObject: newInfoForComponent];