HHH-8523 - Incorrect parameter binding for Calendar and TemporalType

This commit is contained in:
Steve Ebersole 2013-09-19 13:55:55 -05:00
parent 5a3233b915
commit 075da4fdf0
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ public abstract class AbstractParameterRegistrationImpl<T> implements ParameterR
int[] sqlTypesToUse = sqlTypes;
// however, for Calendar binding with an explicit TemporalType we may need to adjust this...
if ( bind.getExplicitTemporalType() != null ) {
if ( bind != null && bind.getExplicitTemporalType() != null ) {
if ( Calendar.class.isInstance( bind.getValue() ) ) {
switch ( bind.getExplicitTemporalType() ) {
case TIMESTAMP: {