forked from organicmaps/organicmaps
[ios] Country code crash fix
This commit is contained in:
parent
4e735a3f02
commit
d111fa5e51
1 changed files with 4 additions and 1 deletions
|
@ -187,7 +187,10 @@ NSString * const AppFeatureMoreAppsBanner = @"AppFeatureMoreAppsBanner";
|
|||
}
|
||||
else
|
||||
{
|
||||
Settings::Set("CountryCode", std::string([_countryCode UTF8String])); // saving code first time
|
||||
if (_countryCode)
|
||||
Settings::Set("CountryCode", std::string([_countryCode UTF8String])); // saving code first time
|
||||
else
|
||||
_countryCode = @"";
|
||||
}
|
||||
}
|
||||
return _countryCode;
|
||||
|
|
Loading…
Add table
Reference in a new issue