diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java index 59bc27839b..5dc21f4f38 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java @@ -707,7 +707,7 @@ public class NewNSTreatmentDialog extends DialogFragment implements View.OnClick PumpInterface pump = MainApp.getConfigBuilder(); if (pump != null) { - pump.setNewBasalProfile(profileStore.getSpecificProfile(profileName)); + pump.setNewBasalProfile(profileSwitch.getProfileObject()); MainApp.bus().post(new EventNewBasalProfile()); } else { log.error("No active pump selected");