fix NPE
This commit is contained in:
parent
a54b9e52d8
commit
8f259042d6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue