Skip to content

Commit 4f0d27f

Browse files
committed
HHH-19932 - Avoid NPE when Query resultType is not set, and trace level logging is enabled
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
1 parent 81761a3 commit 4f0d27f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmInterpretationsKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,6 @@ public int hashCode() {
137137

138138
@Override
139139
public String toString() {
140-
return query.toString() + " : " + resultType.getSimpleName();
140+
return query.toString() + (resultType != null ? " : " + resultType.getSimpleName() : "");
141141
}
142142
}

0 commit comments

Comments
 (0)