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