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 abe7ac5686dc..ec4dc2f87b36 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 @@ protected boolean applyQuerySpaces(Object value) { } if ( value instanceof Collection ) { -// if ( querySpaces == null ) { -// querySpaces = new ArrayList<>(); -// } + if ( querySpaces == null ) { + querySpaces = new ArrayList<>(); + } querySpaces.addAll( (Collection) value ); return true; }