Skip to content

Commit

Permalink
[Fix] Fix get bytes size NPE in SeaTunnelRow (apache#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hisoka-X authored Sep 2, 2023
1 parent 9ab2083 commit 43e0de0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ public int getBytesSize(SeaTunnelRowType rowType) {

/** faster version of {@link #getBytesSize(SeaTunnelRowType)}. */
private int getBytesForValue(Object v, SeaTunnelDataType<?> dataType) {

if (v == null) {
return 0;
}
SqlType sqlType = dataType.getSqlType();
switch (sqlType) {
case STRING:
Expand Down

0 comments on commit 43e0de0

Please sign in to comment.