mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Fix crash : verify dialplan.iso_country_code exists
This commit is contained in:
parent
e35415efc1
commit
cb2e2c8ca4
1 changed files with 5 additions and 3 deletions
|
|
@ -884,9 +884,11 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
ofType:[UITextField class]])
|
||||
.text = @"";
|
||||
linphone_account_creator_set_activation_code(account_creator, "");
|
||||
NSDictionary *country =
|
||||
[CountryListView countryWithIso:[NSString stringWithUTF8String:dialplan.iso_country_code]];
|
||||
[self didSelectCountry:country];
|
||||
if (dialplan.iso_country_code) {
|
||||
NSDictionary *country = [CountryListView
|
||||
countryWithIso:[NSString stringWithUTF8String:dialplan.iso_country_code]];
|
||||
[self didSelectCountry:country];
|
||||
}
|
||||
// Reset phone number in account_creator to be sure to let the user retry
|
||||
if (nationnal_significant_number) {
|
||||
linphone_account_creator_set_phone_number(account_creator, nationnal_significant_number,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue