From e71799fcc3440a67d3bbcecdeb4b073383db2dc4 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 29 Apr 2020 14:53:06 +0200 Subject: [PATCH] Also parsing securityClass to null if string is empty --- .../main/kotlin/net/dankito/fints/response/ResponseParser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/response/ResponseParser.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/response/ResponseParser.kt index be748b1a..28f32c07 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/response/ResponseParser.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/response/ResponseParser.kt @@ -297,7 +297,7 @@ open class ResponseParser @JvmOverloads constructor( val minimumCountSignatures = parseInt(dataElementGroups[2]) // Bei aelteren Version fehlt das Datenelement 'Sicherheitsklasse'. Ist fuer PIN/TAN eh zu ignorieren - val securityClass = if (dataElementGroups.size > 3) parseNullableInt(dataElementGroups[3]) else null + val securityClass = if (dataElementGroups.size > 3) parseIntToNullIfEmpty(dataElementGroups[3]) else null return JobParameters(jobName, maxCountJobs, minimumCountSignatures, securityClass, segment) }