Skip to content

Commit

Permalink
(fix) safety check to avoid exception
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Feb 14, 2019
1 parent f5487e9 commit 2ca5842
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sope-mime/NGMail/NGMailAddressParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ + (NSString *) sanitizeMailAddresses:(NSString *)originalAddress

NSUInteger addrStart, addrEnd, commaPos;

if (!originalAddress)
return nil;

whitespace = [NSCharacterSet whitespaceAndNewlineCharacterSet];
addressList = [NSMutableArray arrayWithCapacity: 1];
remainder = [NSMutableString stringWithString: originalAddress];
Expand Down

0 comments on commit 2ca5842

Please sign in to comment.