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 50c84ed commit d9310c2Copy full SHA for d9310c2
hibernate-core/src/main/java/org/hibernate/query/sqm/function/SelfRenderingSqmWindowFunction.java
@@ -144,7 +144,7 @@ public void appendHqlString(StringBuilder sb) {
144
sb.append( getFunctionName() );
145
sb.append( '(' );
146
int i = 1;
147
- if ( arguments.get( 0 ) instanceof SqmDistinct<?> ) {
+ if ( !arguments.isEmpty() && arguments.get( 0 ) instanceof SqmDistinct<?> ) {
148
arguments.get( 0 ).appendHqlString( sb );
149
if ( arguments.size() > 1 ) {
150
sb.append( ' ' );
0 commit comments