HHH-16169 - Fix potential NullPointerException in CollectionEntry

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2023-02-10 21:00:47 +01:00 committed by Christian Beikov
parent 6f16e4d947
commit 30ad35643c
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ public final class CollectionEntry implements Serializable {
@Override @Override
public String toString() { public String toString() {
String result = "CollectionEntry" + String result = "CollectionEntry" +
MessageHelper.collectionInfoString( loadedPersister.getRole(), loadedKey ); MessageHelper.collectionInfoString( role, loadedKey );
if ( currentPersister != null ) { if ( currentPersister != null ) {
result += "->" + result += "->" +
MessageHelper.collectionInfoString( currentPersister.getRole(), currentKey ); MessageHelper.collectionInfoString( currentPersister.getRole(), currentKey );