mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 11:06:49 +00:00
java.util.NoSuchElementException: head of empty list
This commit is contained in:
parent
c3fb655b91
commit
a071c913eb
@ -1114,7 +1114,7 @@ object KafkaLibMappedConnector extends Connector with CreateViewImpls with Logga
|
||||
def accountType : String = r.`type`
|
||||
def balance : BigDecimal = BigDecimal(r.balance.amount)
|
||||
def currency : String = r.balance.currency
|
||||
def name : String = r.owners.head
|
||||
def name : String = r.owners.headOption.getOrElse("")
|
||||
def swift_bic : Option[String] = Some("swift_bic") //TODO
|
||||
def iban : Option[String] = Some(r.IBAN)
|
||||
def number : String = r.number
|
||||
|
||||
Loading…
Reference in New Issue
Block a user