mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-9710 - IllegalArgumentException passing null as parameter value with explicit TemporalType
(cherry picked from commit 7a2fbbd79ade49f31462fe1d542c1d59ff84b1cf)
This commit is contained in:
parent
fa526f6011
commit
5169f77fb2
@ -253,7 +253,7 @@ public void bindValue(T value) {
|
||||
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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user