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()

This commit is contained in:
dankito 2020-08-11 16:02:02 +02:00
parent 8002b02981
commit dd74a613f2
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ open class ResponseParser(
// TODO: may also parse 'Letzte Benutzung' (second last element) and 'Freigeschaltet am' (last element) // 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) { return when (mediumClass) {
TanMediumKlasse.TanGenerator -> parseTanGeneratorTanMedium(mediumClass, status, hitabVersion, remainingDataElements) TanMediumKlasse.TanGenerator -> parseTanGeneratorTanMedium(mediumClass, status, hitabVersion, remainingDataElements)