fix null pointer exception

This commit is contained in:
Milos Kozak 2017-03-09 09:57:24 +01:00
parent 151baa2fb5
commit 52aa7c1bf8

View file

@ -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;