Skip to content

Commit 92e5732

Browse files
committed
[feat-144][kafka] 修复因为specificEndOffsets 获取不到partition值导致的空指针异常
1 parent 63a804f commit 92e5732

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kafka-base/kafka-base-source/src/main/java/com/dtstack/flink/sql/source/kafka/DtKafkaDeserializationSchemaWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public T deserialize(ConsumerRecord<byte[], byte[]> record) throws Exception {
5353
}
5454
if (specificEndOffsets != null) {
5555
Long endOffset = specificEndOffsets.get(topicPartition);
56-
if (record.offset() >= endOffset) {
56+
if (endOffset != null && record.offset() >= endOffset) {
5757
endPartition.add(record.partition());
5858
return null;
5959
}

0 commit comments

Comments
 (0)