HHH-8502 - EnversIntegrator#disintegrate needs to check config for null

This commit is contained in:
Steve Ebersole 2013-09-16 06:37:20 -05:00
parent e903b3d3cf
commit 34459efc2e
1 changed files with 3 additions and 1 deletions

View File

@ -113,8 +113,10 @@ public class EnversIntegrator implements Integrator {
@Override
public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) {
if ( enversConfiguration != null ) {
enversConfiguration.destroy();
}
}
/**
* {@inheritDoc}