Prevent NPE
This commit is contained in:
parent
1eedf86fa1
commit
90387a052d
1 changed files with 3 additions and 2 deletions
|
@ -369,7 +369,8 @@ public abstract class PodStateManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
public final boolean isBasalCertain() {
|
public final boolean isBasalCertain() {
|
||||||
return getSafe(() -> podState.isBasalCertain());
|
Boolean certain = getSafe(() -> podState.isBasalCertain());
|
||||||
|
return certain == null || certain;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void setBasalCertain(boolean certain) {
|
public final void setBasalCertain(boolean certain) {
|
||||||
|
@ -711,7 +712,7 @@ public abstract class PodStateManager {
|
||||||
private DeliveryStatus lastDeliveryStatus;
|
private DeliveryStatus lastDeliveryStatus;
|
||||||
private AlertSet activeAlerts;
|
private AlertSet activeAlerts;
|
||||||
private BasalSchedule basalSchedule;
|
private BasalSchedule basalSchedule;
|
||||||
private boolean basalCertain;
|
private Boolean basalCertain;
|
||||||
private DateTime lastBolusStartTime;
|
private DateTime lastBolusStartTime;
|
||||||
private Double lastBolusAmount;
|
private Double lastBolusAmount;
|
||||||
private Duration lastBolusDuration;
|
private Duration lastBolusDuration;
|
||||||
|
|
Loading…
Reference in a new issue