HHH-17808 NPE when null vector is read with VectorJdbcType

This commit is contained in:
Christian Beikov 2024-03-05 16:00:53 +01:00
parent c956208926
commit 85a2752c1d
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ public class VectorJdbcType extends ArrayJdbcType {
} }
private float[] getFloatArray(String string) { private float[] getFloatArray(String string) {
if ( string == null ) {
return null;
}
if ( string.length() == 2 ) { if ( string.length() == 2 ) {
return EMPTY; return EMPTY;
} }