mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 02:39:22 +00:00
fix crash when removing contacts
This commit is contained in:
parent
a2cd295b8b
commit
5bb787e90e
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@
|
|||
|
||||
- (BOOL)isValid {
|
||||
BOOL hasName = (_contact.firstName.length + _contact.lastName.length > 0);
|
||||
BOOL hasAddr = ((NSString *)_contact.phoneNumbers[0]).length + ((NSString *)_contact.sipAddresses[0]).length > 0;
|
||||
BOOL hasAddr = (_contact.phoneNumbers.count + _contact.sipAddresses.count) > 0;
|
||||
return hasName && hasAddr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue