(fix) avoid crash when replying to a mail with no recipients (#3359)

This commit is contained in:
Ludovic Marcotte
2015-10-23 12:44:43 -04:00
parent df211af604
commit 1b44218a35
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -699,7 +699,8 @@ static NSString *userAgent = nil;
for (count = max - 1; count >= 0; count--)
{
currentAddress = [addresses objectAtIndex: count];
if ([currentRecipient
if (![currentAddress baseEMail] ||
[currentRecipient
caseInsensitiveCompare: [currentAddress baseEMail]]
== NSOrderedSame)
{