From 9826c1d9538ad7d06d7ff786d6c891c3e664cda3 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 23 Jul 2017 14:07:46 +0200 Subject: [PATCH] Bugfix: NPE when refreshing pump status without a profile set. The base basal rate is a different thing than a TBR rate, when a TBR is running the PumpStatus has a tbrRate, when no TBR is running there's no TBR rate, so don't display the base basal rate. --- .../nightscout/androidaps/plugins/PumpCombo/ComboFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java index d8874e5f47..569f57bb25 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java @@ -118,7 +118,7 @@ public class ComboFragment extends Fragment implements View.OnClickListener { } else { tbrPercentageText.setText("Default basal rate running"); tbrDurationText.setText(""); - tbrRateText.setText("" + getPlugin().getBaseBasalRate() + " U/h"); + tbrRateText.setText(""); } pumpErrorText.setText(ps.errorMsg != null ? ps.errorMsg : ""); }