From 1adbee5c9ecb046639341c5fd181c9b7af311928 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 5 Dec 2017 10:42:10 +0100 Subject: [PATCH] check for null --- .../androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java index e40f839933..3dfd8dcd55 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java @@ -613,7 +613,7 @@ public class ConfigBuilderPlugin implements PluginBase, ConstraintsInterface, Tr @Override public boolean isTempBasalInProgress() { - return activeTreatments.isTempBasalInProgress(); + return activeTreatments != null && activeTreatments.isTempBasalInProgress(); } @Override