From 86e59cc0cc25446e0ad785cf93048b5842faf9ee Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 4 Oct 2024 07:23:32 +0200 Subject: [PATCH] Fixed that informationForUser is nullable --- .../net/codinux/banking/epcqrcode/parser/EpcQrCodeParser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EpcQrCode/src/commonMain/kotlin/net/codinux/banking/epcqrcode/parser/EpcQrCodeParser.kt b/EpcQrCode/src/commonMain/kotlin/net/codinux/banking/epcqrcode/parser/EpcQrCodeParser.kt index ebdf0c0..e70cdd3 100644 --- a/EpcQrCode/src/commonMain/kotlin/net/codinux/banking/epcqrcode/parser/EpcQrCodeParser.kt +++ b/EpcQrCode/src/commonMain/kotlin/net/codinux/banking/epcqrcode/parser/EpcQrCodeParser.kt @@ -94,7 +94,7 @@ open class EpcQrCodeParser { // return createInvalidFormatResult("The reconciliation text in line 11, ${lines[10]}, may not be longer than 140 characters.") // } - val displayText = if (lines.size < 12) null else lines[11] + val displayText = if (lines.size < 12) null else parseToNullableString(lines[11]) // if (displayText != null && displayText.length > 70) { // omit check for parsing // return createInvalidFormatResult("The display text in line 12, ${displayText}, may not be longer than 70 characters.") // }