[ https://issues.apache.org/jira/browse/KAFKA-1849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14270447#comment-14270447 ]
Jun Rao commented on KAFKA-1849: -------------------------------- The issue is that MessageAndMetadata uses Utils.readBytes() to convert ByteBuffer to bytes for the key and payload, which can be null. > Utils.readBytes() should support null ByteBuffer > ------------------------------------------------ > > Key: KAFKA-1849 > URL: https://issues.apache.org/jira/browse/KAFKA-1849 > Project: Kafka > Issue Type: Bug > Components: core > Affects Versions: 0.8.3 > Reporter: Jun Rao > Labels: newbie > Fix For: 0.8.3 > > > We use Utils.readBytes to get the bytes from message.payload. However, > message.payload can be null. -- This message was sent by Atlassian JIRA (v6.3.4#6332)