INTEXT-81 Fixing bug in decoding message streams
* adding a null check on the key decoder https://jira.springsource.org/browse/INTEXT-81
This commit is contained in:
committed by
Gunnar Hillert
parent
e1f400e2cf
commit
86be5e1b78
@@ -182,10 +182,11 @@ public class ConsumerConfiguration {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Map<String, List<KafkaStream<byte[], byte[]>>> getConsumerMapWithMessageStreams() {
|
||||
if (consumerMetadata.getValueDecoder() != null) {
|
||||
if (consumerMetadata.getValueDecoder() != null &&
|
||||
consumerMetadata.getKeyDecoder() != null) {
|
||||
return getConsumerConnector().createMessageStreams(
|
||||
consumerMetadata.getTopicStreamMap(),
|
||||
consumerMetadata.getValueDecoder(),
|
||||
consumerMetadata.getKeyDecoder(),
|
||||
consumerMetadata.getValueDecoder());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user