Fixed that otherPartyName may is just an empty string (like at Targobank)
This commit is contained in:
parent
fb33a7c58a
commit
4d3c1aece3
|
@ -345,7 +345,7 @@ open class Mt940Parser : IMt940Parser {
|
|||
val reference = if (isFormattedReference(referenceParts)) joinReferenceParts(referenceParts)
|
||||
else referenceParts.joinToString(" ")
|
||||
|
||||
val otherPartyNameString = if (otherPartyName.isEmpty()) null else otherPartyName.toString()
|
||||
val otherPartyNameString = if (otherPartyName.isBlank()) null else otherPartyName.toString()
|
||||
|
||||
return InformationToAccountOwner(
|
||||
reference, otherPartyNameString, otherPartyBankCode, otherPartyAccountId,
|
||||
|
|
Loading…
Reference in New Issue