This commit is contained in:
U-MateusPimenta\Mateus Pimenta 2012-08-10 01:37:49 -03:00 committed by Strong Liu
parent 291ffe5031
commit e61e2392c3
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ public class ProviderMBeanRegistrationHelper {
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;
}