diff --git a/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java b/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java index 7b5d07b2cc..6eb862ecf5 100644 --- a/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java +++ b/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java @@ -316,12 +316,13 @@ protected final boolean hasParams() { private boolean hasNullArrayElement(JsonNode node) { for (JsonNode element: node) { if(element.isNull()) { - if (node.isArray()) + if (node.isArray()) { return true; - } - else if (element.isContainerNode()) { - if (hasNullArrayElement(element)) + } + } else if (element.isContainerNode()) { + if (hasNullArrayElement(element)) { return true; + } } } return false;