Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HHH-8428 Protect SessionFactoryRegistry.getNamedSessionFactory(String) from NPE… #549

Closed

Commits on Jun 18, 2013

  1. 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.
    karlvr committed Jun 18, 2013
    Configuration menu
    Copy the full SHA
    50529e3 View commit details
    Browse the repository at this point in the history