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,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();
}
} }
/** /**