Fixed NullPointerException when building session.
This commit is contained in:
parent
a54da750ad
commit
fd7ada315e
|
@ -553,11 +553,13 @@ public final class SessionFactoryImpl implements SessionFactoryImplementor {
|
||||||
}
|
}
|
||||||
|
|
||||||
final Session session = builder.openSession();
|
final Session session = builder.openSession();
|
||||||
map.keySet().forEach ( key -> {
|
if ( map != null ) {
|
||||||
if ( key instanceof String ) {
|
map.keySet().forEach( key -> {
|
||||||
session.setProperty( (String) key, map.get( key ) );
|
if ( key instanceof String ) {
|
||||||
}
|
session.setProperty( (String) key, map.get( key ) );
|
||||||
});
|
}
|
||||||
|
} );
|
||||||
|
}
|
||||||
return session;
|
return session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue