Issues

Select view

Select search mode

 
18 of 18

ProviderMBeanRegistration.locateSessionFactory() NPE

Fixed

Description

https://github.com/hibernate/hibernate-orm/pull/549

From the PR:

Protect SessionFactoryRegistry.getNamedSessionFactory(String) from NPE when the named SessionFactory hasn't been registered.

This problem occurs because ConcurrentHashMap does not support null keys, and throws a NullPointerException.

This can occur from ProviderMBeanRegistration.locateSessionFactory() when it checks to see whether the named SessionFactory is available on a background thread. It expects a null response to indicate that the SessionFactory has not been configured yet.

Details

Assignee

Reporter

Fix versions

Priority

Created August 6, 2013 at 3:47 PM
Updated August 8, 2013 at 2:32 AM
Resolved August 6, 2013 at 3:54 PM

Activity

Show:

Flag notifications