diff --git a/api/src/main/java/org/openmrs/module/kenyaemr/cashier/exemptions/SampleBillingExemptionBuilder.java b/api/src/main/java/org/openmrs/module/kenyaemr/cashier/exemptions/SampleBillingExemptionBuilder.java index 892766b..2d5c1e9 100644 --- a/api/src/main/java/org/openmrs/module/kenyaemr/cashier/exemptions/SampleBillingExemptionBuilder.java +++ b/api/src/main/java/org/openmrs/module/kenyaemr/cashier/exemptions/SampleBillingExemptionBuilder.java @@ -13,6 +13,7 @@ */ package org.openmrs.module.kenyaemr.cashier.exemptions; +import org.apache.commons.lang3.StringUtils; import org.codehaus.jackson.JsonNode; import org.codehaus.jackson.map.ObjectMapper; import org.codehaus.jackson.node.ArrayNode; @@ -45,7 +46,7 @@ public void buildBillingExemptionList() { String exemptionConfig = adminService.getGlobalProperty("kenyaemr.billing.exemptions"); ObjectNode config = null; - if (exemptionConfig != null) { + if (StringUtils.isNotBlank(exemptionConfig)) { ObjectMapper mapper = new ObjectMapper(); try { config = (ObjectNode) mapper.readTree(exemptionConfig);