#706 - NPE when using @DbArray with null values

This commit is contained in:
Robin Bygrave
2016-05-16 16:54:18 +12:00
parent bd330b4c0e
commit 08b0a6350d
@@ -91,7 +91,11 @@ public class ScalarTypeArrayList extends ScalarTypeJsonCollection<List> {
@Override
public void bind(DataBind bind, List value) throws SQLException {
bind.setArray(arrayType, toArray(value));
if (value == null) {
bind.setNull(Types.ARRAY);
} else {
bind.setArray(arrayType, toArray(value));
}
}
@Override