fix NPE ActionStringHandler
This commit is contained in:
parent
398868f34b
commit
a75c60f573
1 changed files with 5 additions and 3 deletions
|
@ -625,10 +625,12 @@ public class ActionStringHandler {
|
||||||
}
|
}
|
||||||
generateTempTarget(duration, low, high);
|
generateTempTarget(duration, low, high);
|
||||||
} else if ("wizard2".equals(act[0])) {
|
} else if ("wizard2".equals(act[0])) {
|
||||||
//use last calculation as confirmed string matches
|
if (lastBolusWizard != null) {
|
||||||
|
//use last calculation as confirmed string matches
|
||||||
|
|
||||||
doBolus(lastBolusWizard.calculatedTotalInsulin, lastBolusWizard.carbs);
|
doBolus(lastBolusWizard.calculatedTotalInsulin, lastBolusWizard.carbs);
|
||||||
lastBolusWizard = null;
|
lastBolusWizard = null;
|
||||||
|
}
|
||||||
} else if ("bolus".equals(act[0])) {
|
} else if ("bolus".equals(act[0])) {
|
||||||
double insulin = SafeParse.stringToDouble(act[1]);
|
double insulin = SafeParse.stringToDouble(act[1]);
|
||||||
int carbs = SafeParse.stringToInt(act[2]);
|
int carbs = SafeParse.stringToInt(act[2]);
|
||||||
|
|
Loading…
Reference in a new issue