fix NPE WatchUpdaterService

This commit is contained in:
Milos Kozak 2019-04-09 12:43:36 +02:00
parent 3b1d96ecc9
commit e53047d4bc

View file

@ -482,6 +482,8 @@ public class WatchUpdaterService extends WearableListenerService implements Goog
for (; runningTime < now; runningTime += 5 * 60 * 1000) {
Profile profileTB = ProfileFunctions.getInstance().getProfile(runningTime);
if (profileTB == null)
return;
//basal rate
endBasalValue = profile.getBasal(runningTime);
if (endBasalValue != beginBasalValue) {