fix NPE
This commit is contained in:
parent
8f259042d6
commit
a617d591b0
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue