crash: do not attempt to store nil body part keys, for emails having no text body

pull/5/head
Wolfgang Sourdeau 2012-10-15 08:04:26 -04:00
parent 23ea006575
commit ef5119f765
1 changed files with 6 additions and 3 deletions

View File

@ -1281,9 +1281,12 @@ _parseCOPYUID (NSString *line, NSArray **destUIDsP)
if (message)
{
bodyPartKey = [message bodyContentPartKey];
[bodyPartKeys addObject: bodyPartKey];
messageUid = [self messageUIDFromMessageKey: messageKey];
[keyAssoc setObject: bodyPartKey forKey: messageUid];
if (bodyPartKey)
{
[bodyPartKeys addObject: bodyPartKey];
messageUid = [self messageUIDFromMessageKey: messageKey];
[keyAssoc setObject: bodyPartKey forKey: messageUid];
}
}
}