mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed
This commit is contained in:
@@ -752,7 +752,10 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
final Connection conn = pooledConnection.getConnection();
|
||||
final DruidConnectionHolder holder = pooledConnection.getConnectionHolder();
|
||||
|
||||
assert holder != null;
|
||||
if (holder == null) {
|
||||
LOG.warn("connectionHolder is null");
|
||||
return;
|
||||
}
|
||||
|
||||
if (pooledConnection.isTraceEnable()) {
|
||||
ActiveConnectionTraceInfo oldInfo = activeConnections.remove(pooledConnection);
|
||||
|
||||
Reference in New Issue
Block a user