Skip to content

Commit

Permalink
Payara: Prevent NullPointerException when fetching database connections
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblaesing committed Dec 28, 2023
1 parent 8b86eb6 commit d651890
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static Map<String, String> normalizePoolMap(Map<String, String> poolValue
String password = poolValues.get(__Password);
String user = poolValues.get(__User);

if (driverClassName.indexOf("pointbase") != -1) {
if (driverClassName != null && driverClassName.indexOf("pointbase") != -1) {
url = poolValues.get(__DatabaseName);
}
// Search for server name key should be case insensitive.
Expand Down

0 comments on commit d651890

Please sign in to comment.