Skip to content

Commit

Permalink
avoid npe in cleaning csv tmp resources
Browse files Browse the repository at this point in the history
  • Loading branch information
tballison committed Oct 29, 2024
1 parent d6b03aa commit 0a495b6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ private String getSelect() {

private void cleanCSVTempResources() throws IOException {
try {
connection.close();
if (connection != null) {
connection.close();
}
} catch (SQLException e) {
LOGGER.warn("problem closing db?!", e);
}
Expand Down

0 comments on commit 0a495b6

Please sign in to comment.