diff --git a/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java b/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java index abe7ac5686..ec4dc2f87b 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java @@ -492,9 +492,9 @@ public class NativeQueryImpl extends AbstractProducedQuery implements Nati } if ( value instanceof Collection ) { -// if ( querySpaces == null ) { -// querySpaces = new ArrayList<>(); -// } + if ( querySpaces == null ) { + querySpaces = new ArrayList<>(); + } querySpaces.addAll( (Collection) value ); return true; }