Skip to content

Commit

Permalink
Fixed NPE in jdbc_all tests
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Apr 11, 2023
1 parent c9680fd commit 85dce7d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,13 @@ private static void openMaxConnections(String dsName, int count) {

for(; i > 0; i--){
try{
con[i - 1].close();
Connection conn = con[i - 1];
if (conn != null) {
conn.close();
}
}catch(SQLException ex){
System.out.println("Unable to close connection");
ex.printStackTrace();
}
}
}
Expand Down

0 comments on commit 85dce7d

Please sign in to comment.