Skip to content

Commit

Permalink
fix bugs when str is null
Browse files Browse the repository at this point in the history
  • Loading branch information
YanZhuangz authored Aug 23, 2024
1 parent 4ce3092 commit b7e342b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private void setRecordValue(Record record, int columnIndex, Object value) {
* @return value
*/
private Object getValue(FieldVector fieldVector, int index) {
if (fieldVector == null || index < 0) {
if (fieldVector == null || index < 0 || fieldVector.getObject(index) == null) {
return null;
}
ArrowType.ArrowTypeID arrowTypeID = fieldVector.getField().getType().getTypeID();
Expand Down

0 comments on commit b7e342b

Please sign in to comment.