Merge pull request #21 from rbkmoney/bugfix/JD-716

JD-716 fix npe
This commit is contained in:
Ivan Martynyuk 2021-10-20 10:57:46 +03:00 committed by GitHub
commit 21fd51b809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ class InternationalLegalEntityConverter :
.setRegisteredNumber(value.registeredNumber)
.setTradingName(value.tradingName)
.setCountry(
if (value.country.isNotEmpty())
if (!value.country.isNullOrEmpty())
CountryRef(CountryCode.valueOf(value.country))
else null
)