Permalink
Browse files

HHH-7518

  • Loading branch information...
1 parent 072e64d commit 401d4902fd8e020d8af16cfae7b36b644ac08aa3 U-MateusPimenta\Mateus Pimenta committed with stliu Aug 10, 2012
@@ -149,7 +149,7 @@ private SessionFactory locateSessionFactory() {
throw new RuntimeException( "Expected 'sessionFactoryMap' field on " + SessionFactoryRegistry.class.getName() );
}
instancesField.setAccessible( true );
- Map map = (Map) instancesField.get( null );
+ Map map = (Map) instancesField.get( SessionFactoryRegistry.INSTANCE );
if ( map == null ) {
return null;
}

0 comments on commit 401d490

Please sign in to comment.