fix NPE
This commit is contained in:
parent
71d95bea92
commit
45a2eba0c2
|
@ -568,8 +568,8 @@ public class WatchUpdaterService extends WearableListenerService implements
|
|||
//Temp basal
|
||||
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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue