[ios] Country code crash fix

This commit is contained in:
Igor Khmurets 2014-04-15 15:39:08 +03:00 committed by Alex Zolotarev
parent 4e735a3f02
commit d111fa5e51

View file

@ -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;