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:
parent
8002b02981
commit
dd74a613f2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue