Skip to content

Commit bdb05dc

Browse files
author
Paultagoras
committed
Update JdbcUtils.java
1 parent 3972bad commit bdb05dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public static Object convert(Object value, Class<?> type, ClickHouseColumn colum
180180
} else if (type == java.sql.Time.class && value instanceof TemporalAccessor) {
181181
return java.sql.Time.valueOf(LocalTime.from((TemporalAccessor) value));
182182
} else if (type == java.sql.Array.class && value instanceof BinaryStreamReader.ArrayValue) {//It's cleaner to use getList but this handles the more generic getObject
183-
if (column != null) {
183+
if (column != null && column.getArrayBaseColumn() != null) {
184184
return new Array(convertList(((BinaryStreamReader.ArrayValue) value).asList(), JdbcUtils.convertToJavaClass(column.getArrayBaseColumn().getDataType())), "Object", JDBCType.JAVA_OBJECT.getVendorTypeNumber());
185185
}
186186
return new Array(((BinaryStreamReader.ArrayValue) value).asList(), "Object", JDBCType.JAVA_OBJECT.getVendorTypeNumber());

0 commit comments

Comments
 (0)