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 d21ddf31e5
commit 0f291a8d8d
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) {
if ( string == null ) {
return null;
}
if ( string.length() == 2 ) {
return EMPTY;
}