Fixed that otherPartyName may is just an empty string (like at Targobank)

This commit is contained in:
dankito 2021-10-31 02:27:48 +02:00
parent fb33a7c58a
commit 4d3c1aece3
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ open class Mt940Parser : IMt940Parser {
val reference = if (isFormattedReference(referenceParts)) joinReferenceParts(referenceParts) val reference = if (isFormattedReference(referenceParts)) joinReferenceParts(referenceParts)
else referenceParts.joinToString(" ") else referenceParts.joinToString(" ")
val otherPartyNameString = if (otherPartyName.isEmpty()) null else otherPartyName.toString() val otherPartyNameString = if (otherPartyName.isBlank()) null else otherPartyName.toString()
return InformationToAccountOwner( return InformationToAccountOwner(
reference, otherPartyNameString, otherPartyBankCode, otherPartyAccountId, reference, otherPartyNameString, otherPartyBankCode, otherPartyAccountId,