Add extra check on connection state in AbstractCursorItemReader#doClose

Issue #868
This commit is contained in:
Mahmoud Ben Hassine
2020-03-18 21:38:42 +01:00
parent f94446878b
commit 999ef54328

View File

@@ -398,7 +398,7 @@ implements InitializingBean {
rs = null;
cleanupOnClose();
if(this.con != null) {
if(this.con != null && !this.con.isClosed()) {
this.con.setAutoCommit(this.initialConnectionAutoCommit);
}