prevent NPE
This commit is contained in:
parent
1e0d1edfb5
commit
93493dfbb5
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue