1
0
mirror of https://github.com/hibernate/hibernate-orm synced 2025-02-27 14:30:16 +00:00

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 ab860995ef
commit 7ba3bb98a4

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