From 34459efc2ec81cf49576aa7f49fbdb7f9e3b7aec Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Mon, 16 Sep 2013 06:37:20 -0500 Subject: [PATCH] HHH-8502 - EnversIntegrator#disintegrate needs to check config for null --- .../java/org/hibernate/envers/event/spi/EnversIntegrator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/event/spi/EnversIntegrator.java b/hibernate-envers/src/main/java/org/hibernate/envers/event/spi/EnversIntegrator.java index c3206abebe..1bbbeaa39d 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/event/spi/EnversIntegrator.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/event/spi/EnversIntegrator.java @@ -113,7 +113,9 @@ public class EnversIntegrator implements Integrator { @Override public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) { - enversConfiguration.destroy(); + if ( enversConfiguration != null ) { + enversConfiguration.destroy(); + } } /**