Add null check in ConfigBuildPlugin.getTempBasalFromHistory.
This commit is contained in:
parent
06d949cd82
commit
27dcb40f48
1 changed files with 1 additions and 1 deletions
|
@ -631,7 +631,7 @@ public class ConfigBuilderPlugin implements PluginBase, ConstraintsInterface, Tr
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public TemporaryBasal getTempBasalFromHistory(long time) {
|
public TemporaryBasal getTempBasalFromHistory(long time) {
|
||||||
return activeTreatments.getTempBasalFromHistory(time);
|
return activeTreatments != null ? activeTreatments.getTempBasalFromHistory(time) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue