diff --git a/backend/analytics/src/main/java/com/griddynamics/msd365fp/manualreview/analytics/service/AlertService.java b/backend/analytics/src/main/java/com/griddynamics/msd365fp/manualreview/analytics/service/AlertService.java index 7b20ed2..3294ab3 100644 --- a/backend/analytics/src/main/java/com/griddynamics/msd365fp/manualreview/analytics/service/AlertService.java +++ b/backend/analytics/src/main/java/com/griddynamics/msd365fp/manualreview/analytics/service/AlertService.java @@ -308,7 +308,7 @@ public class AlertService { private String getTemplate(Map mailTemplates, String templateName) { String template = mailTemplates.get(templateName); - if (template.isEmpty()) { + if (template.isBlank()) { throw new TemplateNotFoundException(String.format("Template [%s] was not found. " + "Please check ConfigurableAppSetting container in CosmosDB for [%s] parameter.", templateName, AppSettingsType.MAIL_TEMPLATES.toString()));