Add null check in ConfigBuildPlugin.getTempBasalFromHistory.

This commit is contained in:
Johannes Mockenhaupt 2018-01-10 22:44:18 +01:00
parent 06d949cd82
commit 27dcb40f48
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -631,7 +631,7 @@ public class ConfigBuilderPlugin implements PluginBase, ConstraintsInterface, Tr
@Override
@Nullable
public TemporaryBasal getTempBasalFromHistory(long time) {
return activeTreatments.getTempBasalFromHistory(time);
return activeTreatments != null ? activeTreatments.getTempBasalFromHistory(time) : null;
}
@Override