Check if the connection is not null or already closed

This commit is contained in:
Xephi 2016-02-23 14:53:29 +01:00
parent 13982011c7
commit f22bc4f395

View File

@ -350,6 +350,7 @@ public class SQLite implements DataSource {
@Override @Override
public synchronized void close() { public synchronized void close() {
try { try {
if (con != null && !con.isClosed())
con.close(); con.close();
} catch (SQLException ex) { } catch (SQLException ex) {
logSqlException(ex); logSqlException(ex);