forked from organicmaps/organicmaps
[android] Added checking of empty price string to fix crash while tap on opentable object on some devices (x86 Acer, arm Boost)
This commit is contained in:
parent
cd979cf617
commit
be6178d1de
1 changed files with 3 additions and 1 deletions
|
@ -180,7 +180,9 @@ string Info::GetApproximatePricing() const
|
|||
return string();
|
||||
|
||||
int pricing;
|
||||
strings::to_int(GetMetadata().Get(feature::Metadata::FMD_PRICE_RATE), pricing);
|
||||
if (!strings::to_int(GetMetadata().Get(feature::Metadata::FMD_PRICE_RATE), pricing))
|
||||
return string();
|
||||
|
||||
string result;
|
||||
for (auto i = 0; i < pricing; i++)
|
||||
result.append(kPricingSymbol);
|
||||
|
|
Loading…
Add table
Reference in a new issue