fix NPE
This commit is contained in:
parent
71d95bea92
commit
45a2eba0c2
1 changed files with 2 additions and 2 deletions
|
@ -568,8 +568,8 @@ public class WatchUpdaterService extends WearableListenerService implements
|
||||||
//Temp basal
|
//Temp basal
|
||||||
TreatmentsInterface treatmentsInterface = MainApp.getConfigBuilder();
|
TreatmentsInterface treatmentsInterface = MainApp.getConfigBuilder();
|
||||||
|
|
||||||
if (treatmentsInterface.isTempBasalInProgress()) {
|
|
||||||
TemporaryBasal activeTemp = treatmentsInterface.getTempBasalFromHistory(System.currentTimeMillis());
|
TemporaryBasal activeTemp = treatmentsInterface.getTempBasalFromHistory(System.currentTimeMillis());
|
||||||
|
if (activeTemp != null) {
|
||||||
status += activeTemp.toStringShort();
|
status += activeTemp.toStringShort();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue