fix NPE WatchUpdaterService
This commit is contained in:
parent
3b1d96ecc9
commit
e53047d4bc
1 changed files with 2 additions and 0 deletions
|
@ -482,6 +482,8 @@ public class WatchUpdaterService extends WearableListenerService implements Goog
|
||||||
|
|
||||||
for (; runningTime < now; runningTime += 5 * 60 * 1000) {
|
for (; runningTime < now; runningTime += 5 * 60 * 1000) {
|
||||||
Profile profileTB = ProfileFunctions.getInstance().getProfile(runningTime);
|
Profile profileTB = ProfileFunctions.getInstance().getProfile(runningTime);
|
||||||
|
if (profileTB == null)
|
||||||
|
return;
|
||||||
//basal rate
|
//basal rate
|
||||||
endBasalValue = profile.getBasal(runningTime);
|
endBasalValue = profile.getBasal(runningTime);
|
||||||
if (endBasalValue != beginBasalValue) {
|
if (endBasalValue != beginBasalValue) {
|
||||||
|
|
Loading…
Reference in a new issue