Skip to content

Commit

Permalink
fix NPE if queueBufferLength is null in KafkaEightSimpleConsumerFireh…
Browse files Browse the repository at this point in the history
…oseFactory (apache#3345)
  • Loading branch information
kaijianding authored and drcrallen committed Aug 10, 2016
1 parent 890e3bd commit b21a98e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public KafkaEightSimpleConsumerFirehoseFactory(
);

this.queueBufferLength = queueBufferLength == null ? DEFAULT_QUEUE_BUFFER_LENGTH : queueBufferLength;
Preconditions.checkArgument(queueBufferLength > 0, "queueBufferLength must be positive number");
Preconditions.checkArgument(this.queueBufferLength > 0, "queueBufferLength must be positive number");
log.info("queueBufferLength loaded as[%s]", this.queueBufferLength);

this.earliest = resetOffsetToEarliest == null ? true : resetOffsetToEarliest.booleanValue();
Expand Down

0 comments on commit b21a98e

Please sign in to comment.