fix NPE WatchUpdaterService
This commit is contained in:
parent
3b1d96ecc9
commit
e53047d4bc
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue