Skip to content

Commit

Permalink
Added null-check in release
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHolger committed May 24, 2024
1 parent f6b3a77 commit 799658e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public PooledSQL get() {
}

public void release(SQL sql) {
if(sql == null) {
throw new IllegalArgumentException("sql must not be null");
}
if(!closing) {
if(sql instanceof PooledSQL) {
sql.close();
Expand Down

0 comments on commit 799658e

Please sign in to comment.