diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/util/jdbi/DatabaseAuthenticationProviderFactory.java b/openmetadata-service/src/main/java/org/openmetadata/service/util/jdbi/DatabaseAuthenticationProviderFactory.java index ea850bd34e5a..77bb1cd267b8 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/util/jdbi/DatabaseAuthenticationProviderFactory.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/util/jdbi/DatabaseAuthenticationProviderFactory.java @@ -1,5 +1,7 @@ package org.openmetadata.service.util.jdbi; +import static org.openmetadata.common.utils.CommonUtil.nullOrEmpty; + import java.net.URI; import java.net.URLDecoder; import java.util.LinkedHashMap; @@ -35,7 +37,7 @@ private static Map parseQueryParams(String jdbcURL) { URI uri = new URI(jdbcURL.substring(jdbcURL.indexOf(":") + 1)); Map queryPairs = new LinkedHashMap<>(); String query = uri.getQuery(); - if (query != null && !query.isEmpty()) { + if (!nullOrEmpty(query)) { String[] pairs = query.split("&"); for (String pair : pairs) { int idx = pair.indexOf("=");