Also parsing securityClass to null if string is empty

This commit is contained in:
dankito 2020-04-29 14:53:06 +02:00
parent c300bd2b7b
commit e71799fcc3
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ open class ResponseParser @JvmOverloads constructor(
val minimumCountSignatures = parseInt(dataElementGroups[2]) val minimumCountSignatures = parseInt(dataElementGroups[2])
// Bei aelteren Version fehlt das Datenelement 'Sicherheitsklasse'. Ist fuer PIN/TAN eh zu ignorieren // 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) return JobParameters(jobName, maxCountJobs, minimumCountSignatures, securityClass, segment)
} }