prevent NPE
This commit is contained in:
parent
8b496c45c2
commit
5c26c1ddb6
1 changed files with 1 additions and 0 deletions
|
@ -345,6 +345,7 @@ class WizardDialog : DaggerDialogFragment() {
|
|||
val basalIob = iobCobCalculator.calculateIobFromTempBasalsIncludingConvertedExtended().round()
|
||||
|
||||
runOnUiThread {
|
||||
_binding ?: return@runOnUiThread
|
||||
if (carbsPassedIntoWizard != 0.0) {
|
||||
binding.carbsInput.value = carbsPassedIntoWizard
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue