Skip to content

Commit

Permalink
ISSUE-18848: add missing String.isEmpty() check
Browse files Browse the repository at this point in the history
  • Loading branch information
plutaniano committed Nov 28, 2024
1 parent 3453c79 commit f1456fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private static Map<String, String> parseQueryParams(String jdbcURL) {
URI uri = new URI(jdbcURL.substring(jdbcURL.indexOf(":") + 1));
Map<String, String> queryPairs = new LinkedHashMap<>();
String query = uri.getQuery();
if (query != null) {
if (query != null && !query.isEmpty()) {
String[] pairs = query.split("&");
for (String pair : pairs) {
int idx = pair.indexOf("=");
Expand Down

0 comments on commit f1456fc

Please sign in to comment.