prevent NPE

This commit is contained in:
Milos Kozak 2022-03-29 11:05:48 +02:00
parent 1e0d1edfb5
commit 93493dfbb5

View file

@ -309,9 +309,10 @@ class OmnipodErosOverviewFragment : DaggerFragment() {
}
if (podStateManager.isPodFaulted) {
val faultEventCode = podStateManager.faultEventCode
podStateManager.faultEventCode?.let { faultEventCode ->
errors.add(rh.gs(R.string.omnipod_common_pod_status_pod_fault_description, faultEventCode.value, faultEventCode.name))
}
}
// base basal rate
podInfoBinding.baseBasalRate.text = if (podStateManager.isPodActivationCompleted) {