HHH-8502 - EnversIntegrator#disintegrate needs to check config for null
This commit is contained in:
parent
e903b3d3cf
commit
34459efc2e
|
@ -113,7 +113,9 @@ public class EnversIntegrator implements Integrator {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) {
|
public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) {
|
||||||
enversConfiguration.destroy();
|
if ( enversConfiguration != null ) {
|
||||||
|
enversConfiguration.destroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue