check for null

This commit is contained in:
Milos Kozak 2017-12-05 10:42:10 +01:00
parent 6c714261d0
commit 1adbee5c9e

View file

@ -613,7 +613,7 @@ public class ConfigBuilderPlugin implements PluginBase, ConstraintsInterface, Tr
@Override
public boolean isTempBasalInProgress() {
return activeTreatments.isTempBasalInProgress();
return activeTreatments != null && activeTreatments.isTempBasalInProgress();
}
@Override