prevent NPE
This commit is contained in:
parent
fda2bb6188
commit
534b27cb71
|
@ -473,6 +473,7 @@ public class TreatmentsPlugin extends PluginBase implements TreatmentsInterface
|
||||||
|
|
||||||
for (long i = time - range(); i < time; i += T.mins(5).msecs()) {
|
for (long i = time - range(); i < time; i += T.mins(5).msecs()) {
|
||||||
Profile profile = profileFunction.getProfile(i);
|
Profile profile = profileFunction.getProfile(i);
|
||||||
|
if (profile == null) continue;
|
||||||
double basal = profile.getBasal(i);
|
double basal = profile.getBasal(i);
|
||||||
TemporaryBasal runningTBR = getTempBasalFromHistory(i);
|
TemporaryBasal runningTBR = getTempBasalFromHistory(i);
|
||||||
double running = basal;
|
double running = basal;
|
||||||
|
|
Loading…
Reference in a new issue