From f51de7da816cd79b4c06cc8e4ab33715dba78e9b Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 12 Sep 2018 10:55:34 +0200 Subject: [PATCH] fix wizard test --- app/src/main/java/info/nightscout/utils/BolusWizard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/utils/BolusWizard.java b/app/src/main/java/info/nightscout/utils/BolusWizard.java index 7d7ff128af..cfdd670f51 100644 --- a/app/src/main/java/info/nightscout/utils/BolusWizard.java +++ b/app/src/main/java/info/nightscout/utils/BolusWizard.java @@ -157,7 +157,7 @@ public class BolusWizard { sb.append("IncludeBasalIOB=").append(includeBasalIOB).append("; "); sb.append("Superbolus=").append(superBolus).append("; "); sb.append("Trend=").append(trend).append("; "); - sb.append("Profile=").append(specificProfile != null ? specificProfile.getData().toString() : "null").append("; "); + sb.append("Profile=").append(specificProfile != null && specificProfile.getData() != null ? specificProfile.getData().toString() : "null").append("; "); sb.append("\n"); sb.append("targetBGLow=").append(targetBGLow).append("; ");