From 60fbb1eeba85b060e0be590329e5c19849c863d0 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Tue, 24 Apr 2018 23:00:22 +0200 Subject: [PATCH] Fix another NPE. --- .../androidaps/plugins/Overview/Dialogs/WizardDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java index 2aba5e47a1..e15c34bac8 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java @@ -489,7 +489,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener, Com Double c_cob = 0d; if (cobCheckbox.isChecked()) { CobInfo cobInfo = IobCobCalculatorPlugin.getPlugin().getCobInfo(false, "Wizard COB"); - if (cobInfo != null) + if (cobInfo != null && cobInfo.displayCob != null) c_cob = cobInfo.displayCob; }