diff --git a/hibernate-core/src/main/java/org/hibernate/query/internal/QueryParameterBindingsImpl.java b/hibernate-core/src/main/java/org/hibernate/query/internal/QueryParameterBindingsImpl.java index dc46da4a2e..7c058f4336 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/internal/QueryParameterBindingsImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/query/internal/QueryParameterBindingsImpl.java @@ -194,7 +194,7 @@ public class QueryParameterBindingsImpl implements QueryParameterBindings { public void verifyParametersBound(boolean reserveFirstParameter) { for ( Map.Entry bindEntry : parameterBindingMap.entrySet() ) { - if ( bindEntry.getValue() == null ) { + if ( bindEntry.getValue().getBindValue() == null ) { if ( bindEntry.getKey().getName() == null ) { throw new QueryException( "Named parameter [" + bindEntry.getKey().getName() + "] not set" ); }