fix NPE
This commit is contained in:
parent
a54b9e52d8
commit
8f259042d6
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ public class VirtualPumpPlugin implements PluginBase, PumpInterface {
|
||||||
public double getBaseBasalRate() {
|
public double getBaseBasalRate() {
|
||||||
Profile profile = MainApp.getConfigBuilder().getProfile();
|
Profile profile = MainApp.getConfigBuilder().getProfile();
|
||||||
if (profile != null)
|
if (profile != null)
|
||||||
return profile.getBasal();
|
return profile.getBasal() != null ? profile.getBasal() : 0d;
|
||||||
else
|
else
|
||||||
return 0d;
|
return 0d;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue