Fixed that other party name can be null

This commit is contained in:
dankl 2019-10-12 13:50:33 +02:00 committed by dankito
parent f54c082af0
commit 93e268c0d0
2 changed files with 4 additions and 2 deletions

View File

@ -305,8 +305,10 @@ open class Mt940Parser : IMt940Parser {
}
}
val otherPartyNameString = if (otherPartyName.isEmpty()) null else otherPartyName.toString()
val details = TransactionDetails(
usage.toString(), otherPartyName.toString(), otherPartyBankCode, otherPartyAccountId,
usage.toString(), otherPartyNameString, otherPartyBankCode, otherPartyAccountId,
bookingText, primaNotaNumber, textKeySupplement
)
return details

View File

@ -3,7 +3,7 @@ package net.dankito.fints.transactions.mt940.model
open class TransactionDetails(
val usage: String,
val otherPartyName: String,
val otherPartyName: String?,
val otherPartyBankCode: String?,
val otherPartyAccountId: String?,
val bookingText: String?,