This commit is contained in:
Milos Kozak 2017-10-07 22:29:55 +02:00
parent 8f259042d6
commit a617d591b0

View file

@ -366,6 +366,9 @@ public class IobCobCalculatorPlugin implements PluginBase {
continue; continue;
} }
if (profile.getIsf(bgTime) == null)
return; // profile not set yet
double sens = Profile.toMgdl(profile.getIsf(bgTime), profile.getUnits()); double sens = Profile.toMgdl(profile.getIsf(bgTime), profile.getUnits());
AutosensData autosensData = new AutosensData(); AutosensData autosensData = new AutosensData();