Fixed that other party name can be null
This commit is contained in:
parent
f54c082af0
commit
93e268c0d0
|
@ -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
|
||||
|
|
|
@ -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?,
|
||||
|
|
Loading…
Reference in New Issue