check for null
This commit is contained in:
parent
1b69771893
commit
194fd7f0a6
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ public class TempBasal {
|
||||||
Long date = (long) (timeStart.getTime() + j * tempBolusSpacing * 60 * 1000 + 0.5d * tempBolusSpacing * 60 * 1000);
|
Long date = (long) (timeStart.getTime() + j * tempBolusSpacing * 60 * 1000 + 0.5d * tempBolusSpacing * 60 * 1000);
|
||||||
|
|
||||||
Double basalRate = profile.getBasal(NSProfile.secondsFromMidnight(date));
|
Double basalRate = profile.getBasal(NSProfile.secondsFromMidnight(date));
|
||||||
|
|
||||||
|
if (basalRate == null)
|
||||||
|
continue;
|
||||||
if (isExtended) {
|
if (isExtended) {
|
||||||
netBasalRate = this.absolute;
|
netBasalRate = this.absolute;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue