Skip to content

Commit

Permalink
BAH-3224 ReminderForAppointment task fails with NPE on fresh install
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton committed Sep 15, 2023
1 parent 81df93c commit 682eabf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ReminderForAppointment extends AbstractTask {
public void execute() {
AdministrationService administrationService = Context.getService(AdministrationService.class);

boolean scheduleSMS = Boolean.valueOf(administrationService.getGlobalPropertyObject("sms.enableAppointmentReminderSMSAlert").getPropertyValue());
boolean scheduleSMS = Boolean.parseBoolean(administrationService.getGlobalProperty("sms.enableAppointmentReminderSMSAlert", "false"));

if (!scheduleSMS) {
return;
Expand Down

0 comments on commit 682eabf

Please sign in to comment.