Add null check in AbstractProvider#isClosed
This commit is contained in:
parent
27531362ba
commit
2debf329a8
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ abstract class AbstractProvider implements ConnectionProvider {
|
|||
@Override
|
||||
public boolean isClosed() {
|
||||
try {
|
||||
return connection.isClosed();
|
||||
return connection == null || connection.isClosed();
|
||||
} catch (SQLException e) {
|
||||
throw new SqlException(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue