From 4d3c1aece3d4c2432ac35cccd9a0f08a64a724ea Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 31 Oct 2021 02:27:48 +0200 Subject: [PATCH] Fixed that otherPartyName may is just an empty string (like at Targobank) --- .../net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt index 1541b35f..835338d4 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/mt940/Mt940Parser.kt @@ -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,