diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/QueryImpl.java b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/QueryImpl.java index 67bf5a615a..5813243658 100755 --- a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/QueryImpl.java +++ b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/QueryImpl.java @@ -253,7 +253,7 @@ public class QueryImpl extends AbstractQueryImpl public void bindValue(T value, TemporalType specifiedTemporalType) { validateBinding( getParameterType(), value, specifiedTemporalType ); - if ( Date.class.isInstance( value ) ) { + if ( value == null || Date.class.isInstance( value ) ) { if ( name != null ) { if ( specifiedTemporalType == DATE ) { nativeQuery.setDate( name, (Date) value );