mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
fix crash when cancel edit contact with an empty phone number
This commit is contained in:
parent
e7c79bbc24
commit
6b25584c6f
1 changed files with 7 additions and 3 deletions
|
|
@ -437,9 +437,13 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
nbSipAd++;
|
||||
}
|
||||
}
|
||||
while (_contact.phones.count > 0 &&
|
||||
_contact.phones[0] != NULL) {
|
||||
[_contact removePhoneNumberAtIndex:0];
|
||||
while (_contact.phones.count > 0) {
|
||||
if (_contact.phones[0] != NULL && ![_contact.phones[0] isEqualToString:@" "]) {
|
||||
[_contact removePhoneNumberAtIndex:0];
|
||||
} else {
|
||||
// remove empty index
|
||||
[_contact.phones removeObjectAtIndex:0];
|
||||
}
|
||||
}
|
||||
NSInteger nbPhone = 0;
|
||||
if (_tmpContact.phones != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue