HHH-14317 Avoid closing datasource in AgroalConnectionProvider if datasource is not initialized
This commit is contained in:
parent
358fc58dc1
commit
0b9f5dc16d
|
@ -139,6 +139,8 @@ public class AgroalConnectionProvider implements ConnectionProvider, Configurabl
|
|||
|
||||
@Override
|
||||
public void stop() {
|
||||
agroalDataSource.close();
|
||||
if ( agroalDataSource != null ) {
|
||||
agroalDataSource.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue