mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 01:00:18 +01:00
Check if the connection is not null or already closed
This commit is contained in:
parent
13982011c7
commit
f22bc4f395
@ -350,7 +350,8 @@ public class SQLite implements DataSource {
|
|||||||
@Override
|
@Override
|
||||||
public synchronized void close() {
|
public synchronized void close() {
|
||||||
try {
|
try {
|
||||||
con.close();
|
if (con != null && !con.isClosed())
|
||||||
|
con.close();
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
logSqlException(ex);
|
logSqlException(ex);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user