diff --git a/fhir-config/src/main/java/com/ibm/fhir/config/PropertyGroup.java b/fhir-config/src/main/java/com/ibm/fhir/config/PropertyGroup.java index 20fca98e6a6..5bc37b17133 100644 --- a/fhir-config/src/main/java/com/ibm/fhir/config/PropertyGroup.java +++ b/fhir-config/src/main/java/com/ibm/fhir/config/PropertyGroup.java @@ -237,12 +237,16 @@ public Object[] getArrayProperty(String propertyName) throws Exception { /** * Returns the properties contained in the PropertyGroup in the form of a list of * PropertyEntry instances. If no properties exist, then an empty list will be returned. + * Properties with a value of null will be omitted from the list. * @throws Exception */ public List getProperties() throws Exception { List results = new ArrayList<>(); for (Map.Entry entry : jsonObj.entrySet()) { - results.add(new PropertyEntry(entry.getKey(), convertJsonValue(entry.getValue()))); + Object jsonValue = convertJsonValue(entry.getValue()); + if (jsonValue != null) { + results.add(new PropertyEntry(entry.getKey(), convertJsonValue(entry.getValue()))); + } } return results; }