From 5e28d9465db1d1cb904115cfa08d514ed41c1303 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 26 Sep 2023 11:04:05 +0200 Subject: [PATCH] fix NPE --- .../app/aaps/core/ui/elements/DigitsKeyListenerWithComma.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ui/src/main/kotlin/app/aaps/core/ui/elements/DigitsKeyListenerWithComma.kt b/core/ui/src/main/kotlin/app/aaps/core/ui/elements/DigitsKeyListenerWithComma.kt index fc7e1e2b5f..cd45f8320e 100644 --- a/core/ui/src/main/kotlin/app/aaps/core/ui/elements/DigitsKeyListenerWithComma.kt +++ b/core/ui/src/main/kotlin/app/aaps/core/ui/elements/DigitsKeyListenerWithComma.kt @@ -36,7 +36,7 @@ internal class DigitsKeyListenerWithComma @JvmOverloads constructor(private val override fun filter( source: CharSequence, start: Int, end: Int, dest: Spanned, dstart: Int, dend: Int - ): CharSequence { + ): CharSequence? { var sourceSequence = source var startIndex = start var endIndex = end