mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-8428 comment & cleanup
This commit is contained in:
parent
023862728f
commit
e5af57585b
@ -167,11 +167,8 @@ public void removeSessionFactory(
|
||||
public SessionFactory getNamedSessionFactory(String name) {
|
||||
LOG.debugf( "Lookup: name=%s", name );
|
||||
final String uuid = nameUuidXref.get( name );
|
||||
if ( uuid != null ) {
|
||||
return getSessionFactory( uuid );
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
// protect against NPE -- see HHH-8428
|
||||
return uuid == null ? null : getSessionFactory( uuid );
|
||||
}
|
||||
|
||||
public SessionFactory getSessionFactory(String uuid) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user