This commit is contained in:
Milos Kozak 2017-10-07 22:24:42 +02:00
parent a54b9e52d8
commit 8f259042d6

View file

@ -207,7 +207,7 @@ public class VirtualPumpPlugin implements PluginBase, PumpInterface {
public double getBaseBasalRate() {
Profile profile = MainApp.getConfigBuilder().getProfile();
if (profile != null)
return profile.getBasal();
return profile.getBasal() != null ? profile.getBasal() : 0d;
else
return 0d;
}