prevent NPE
This commit is contained in:
parent
1e0d1edfb5
commit
93493dfbb5
|
@ -309,9 +309,10 @@ class OmnipodErosOverviewFragment : DaggerFragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (podStateManager.isPodFaulted) {
|
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))
|
errors.add(rh.gs(R.string.omnipod_common_pod_status_pod_fault_description, faultEventCode.value, faultEventCode.name))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// base basal rate
|
// base basal rate
|
||||||
podInfoBinding.baseBasalRate.text = if (podStateManager.isPodActivationCompleted) {
|
podInfoBinding.baseBasalRate.text = if (podStateManager.isPodActivationCompleted) {
|
||||||
|
|
Loading…
Reference in a new issue