mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
ContactsListTableView.m: fix crash when searching some text
This commit is contained in:
parent
cb158dfb04
commit
8c904f9c4e
1 changed files with 3 additions and 1 deletions
|
|
@ -133,7 +133,9 @@ static int ms_strcmpfuz(const char *fuzzy_word, const char *sentence) {
|
|||
add = (contact.emails.count > 0);
|
||||
}
|
||||
|
||||
NSMutableString *name = [[NSMutableString alloc] initWithString:[self displayNameForContact:contact]];
|
||||
NSMutableString *name = [self displayNameForContact:contact]
|
||||
? [[NSMutableString alloc] initWithString:[self displayNameForContact:contact]]
|
||||
: nil;
|
||||
if (add && name != nil) {
|
||||
NSString *firstChar = [[name substringToIndex:1] uppercaseString];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue