HHH-8428 comment & cleanup

This commit is contained in:
Brett Meyer 2013-08-06 11:52:46 -04:00
parent 023862728f
commit e5af57585b
1 changed files with 2 additions and 5 deletions

View File

@ -167,11 +167,8 @@ public class SessionFactoryRegistry {
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) {