The getter 'isNotEmpty' was called in null #18

This commit is contained in:
unknown 2018-07-16 23:03:53 +03:00
parent e72b92d124
commit 97293c61cf
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ String formatNumber(
if (currency.id == kCurrencyEuro) {
swapCurrencySymbol = country.swapCurrencySymbol;
if (country.thousandSeparator.isNotEmpty) {
if (country.thousandSeparator != null && country.thousandSeparator.isNotEmpty) {
thousandSeparator = country.thousandSeparator;
}
if (country.decimalSeparator.isNotEmpty) {
if (country.decimalSeparator != null && country.decimalSeparator.isNotEmpty) {
decimalSeparator = country.decimalSeparator;
}
}