Skip to content

Commit

Permalink
Merge branch '7.5.x' into 7.6.x by zhaochun-ma
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfluentSemaphore committed Jan 24, 2024
2 parents 35a72cf + 1879995 commit dde119f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,12 @@ public void writeTo(ConsumerRecord<byte[], byte[]> consumerRecord, PrintStream o
}
if (printValueId) {
output.write(idSeparator);
int schemaId = schemaIdFor(consumerRecord.value());
output.print(schemaId);
if (consumerRecord.value() != null) {
int schemaId = schemaIdFor(consumerRecord.value());
output.print(schemaId);
} else {
output.write(NULL_BYTES);
}
}
output.write(lineSeparator);
} catch (IOException ioe) {
Expand Down

0 comments on commit dde119f

Please sign in to comment.