From dd74a613f205316f77b1bc4e20afb4beacad6580 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 11 Aug 2020 16:02:02 +0200 Subject: [PATCH] Fixed that last two data elements got removed from list - even though that 'Letzte Benutzung' and 'Freigeschaltet am' are optional and may not set resulting in an exception in parseTanGeneratorTanMedium() --- .../kotlin/net/dankito/banking/fints/response/ResponseParser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/ResponseParser.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/ResponseParser.kt index 8d05482d..7ef4868e 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/ResponseParser.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/ResponseParser.kt @@ -534,7 +534,7 @@ open class ResponseParser( // TODO: may also parse 'Letzte Benutzung' (second last element) and 'Freigeschaltet am' (last element) - val remainingDataElements = dataElements.subList(2, dataElements.size - 2) + val remainingDataElements = dataElements.subList(2, dataElements.size) return when (mediumClass) { TanMediumKlasse.TanGenerator -> parseTanGeneratorTanMedium(mediumClass, status, hitabVersion, remainingDataElements)