prevent NPE

This commit is contained in:
Milos Kozak 2022-07-06 23:14:55 +02:00
parent 8b496c45c2
commit 5c26c1ddb6

View file

@ -345,6 +345,7 @@ class WizardDialog : DaggerDialogFragment() {
val basalIob = iobCobCalculator.calculateIobFromTempBasalsIncludingConvertedExtended().round()
runOnUiThread {
_binding ?: return@runOnUiThread
if (carbsPassedIntoWizard != 0.0) {
binding.carbsInput.value = carbsPassedIntoWizard
}