From 84d58037ee7db72d82561a843879cec62ca8842a Mon Sep 17 00:00:00 2001 From: Rolf Smit Date: Wed, 6 May 2026 19:04:01 +0200 Subject: [PATCH] Fix: Crash when clearing the start pressure field in cylinder picker --- .../screens/planner/cylinders/CylinderPickerBottomSheet.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheet.kt b/composeApp/src/commonMain/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheet.kt index af1a97e..855bef7 100644 --- a/composeApp/src/commonMain/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheet.kt +++ b/composeApp/src/commonMain/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheet.kt @@ -280,7 +280,9 @@ private fun CylinderPickerBottomSheetContent( visualTransformation = SuffixVisualTransformation(" ${unitSystem.pressureUnitLabel}"), errorMessage = errorMessagePressure, onNumberChanged = { - startPressure = it + if (it != null) { + startPressure = it + } }, supportingText = null )