HHH-10860 - Fix Query#scroll() throws NPE

This commit is contained in:
Andrea Boriero 2016-06-22 15:39:06 +02:00
parent 1e5a022e93
commit ad5c0f6376
1 changed files with 2 additions and 4 deletions

View File

@ -1343,12 +1343,10 @@ public abstract class AbstractProducedQuery<R> implements QueryImplementor<R> {
}
protected ScrollableResultsImplementor doScroll(ScrollMode scrollMode) {
final String query = queryParameterBindings.expandListValuedParameters( getQueryString(), getProducer() );
QueryParameters queryParameters = getQueryParameters();
queryParameters.setScrollMode( scrollMode );
return getProducer().scroll(
queryParameterBindings.expandListValuedParameters( getQueryString(), getProducer() ),
queryParameters
);
return getProducer().scroll( query, queryParameters );
}
@Override