Skip to content

Commit

Permalink
Prevent null-pointer dereference when closing the statement
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Jul 23, 2024
1 parent ef08d56 commit 2001d52
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ private AlgDataType deriveType( JavaTypeFactory typeFactory, ParameterMeta param

@Override
public void close() {
statement.close();
if ( statement != null ) {
statement.close();
}
closeResults();
}

Expand Down

0 comments on commit 2001d52

Please sign in to comment.