We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5924a1b commit 70a1e23Copy full SHA for 70a1e23
hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryRegistry.java
@@ -132,7 +132,11 @@ public void removeSessionFactory(
132
public SessionFactory getNamedSessionFactory(String name) {
133
LOG.debugf( "Lookup: name=%s", name );
134
final String uuid = nameUuidXref.get( name );
135
- return getSessionFactory( uuid );
+ if ( uuid != null ) {
136
+ return getSessionFactory( uuid );
137
+ } else {
138
+ return null;
139
+ }
140
}
141
142
public SessionFactory getSessionFactory(String uuid) {
0 commit comments