diff --git a/seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sink/writer/ParquetWriteStrategy.java b/seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sink/writer/ParquetWriteStrategy.java index 6fc23701ec6..fb9b139adc9 100644 --- a/seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sink/writer/ParquetWriteStrategy.java +++ b/seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sink/writer/ParquetWriteStrategy.java @@ -155,6 +155,9 @@ private ParquetWriter getOrCreateWriter(@NonNull String filePath) @SuppressWarnings("checkstyle:MagicNumber") private Object resolveObject(Object data, SeaTunnelDataType seaTunnelDataType) { + if (data == null) { + return null; + } switch (seaTunnelDataType.getSqlType()) { case ARRAY: BasicType elementType = ((ArrayType) seaTunnelDataType).getElementType();