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 5097326 commit f619547Copy full SHA for f619547
hibernate-core/src/main/java/org/hibernate/query/sqm/function/SelfRenderingSqmWindowFunction.java
@@ -124,7 +124,7 @@ public void appendHqlString(StringBuilder sb) {
124
sb.append( getFunctionName() );
125
sb.append( '(' );
126
int i = 1;
127
- if ( arguments.get( 0 ) instanceof SqmDistinct<?> ) {
+ if ( !arguments.isEmpty() && arguments.get( 0 ) instanceof SqmDistinct<?> ) {
128
arguments.get( 0 ).appendHqlString( sb );
129
if ( arguments.size() > 1 ) {
130
sb.append( ' ' );
0 commit comments