(fix) added fix from PR#224, in v2 instead of maint

This commit is contained in:
Ludovic Marcotte
2016-12-30 10:08:18 -05:00
parent c36b90dc3d
commit 2af6674ce8

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];