fix null pointer exception
This commit is contained in:
parent
151baa2fb5
commit
52aa7c1bf8
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ public class KeepAliveReceiver extends BroadcastReceiver {
|
|||
|
||||
final PumpInterface pump = MainApp.getConfigBuilder();
|
||||
final NSProfile profile = MainApp.getConfigBuilder().getActiveProfile().getProfile();
|
||||
if (pump != null && profile != null) {
|
||||
if (pump != null && profile != null && profile.getBasal(NSProfile.secondsFromMidnight()) != null) {
|
||||
boolean isBasalOutdated = false;
|
||||
boolean isStatusOutdated = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue