From b4b158aaffece62abd6e8c38f42ca00eeba36610 Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Sun, 24 Apr 2016 00:18:58 -0500 Subject: [PATCH] Fixed missing bound parameters not throwing QueryException --- .../hibernate/query/internal/QueryParameterBindingsImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ); }