more checking for null
This commit is contained in:
parent
1f2967e866
commit
1a76809f33
|
@ -120,7 +120,7 @@ public class NSProfile {
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return 3D;
|
||||
return Constants.defaultDIA;
|
||||
}
|
||||
/*
|
||||
public Double getCarbAbsorbtionRate() {
|
||||
|
|
|
@ -142,7 +142,7 @@ public class OpenAPSAMAPlugin implements PluginBase, APSInterface {
|
|||
return;
|
||||
}
|
||||
|
||||
if (profile == null) {
|
||||
if (profile == null || profile.getIc(NSProfile.secondsFromMidnight()) == null || profile.getIsf(NSProfile.secondsFromMidnight()) == null || profile.getBasal(NSProfile.secondsFromMidnight()) == null ) {
|
||||
MainApp.bus().post(new EventOpenAPSUpdateResultGui(MainApp.instance().getString(R.string.openapsma_noprofile)));
|
||||
if (Config.logAPSResult)
|
||||
log.debug(MainApp.instance().getString(R.string.openapsma_noprofile));
|
||||
|
|
Loading…
Reference in a new issue