Description
KafkaConsumer.partitionsFor(topicStr) returns null if the topic does not exist and auto.create.topics.enabled has been set to false on Kafka side.
This case is not handled in the Flume code which leads to NPE.
Null check needs to be added and warning message should be logged instead of the exception stacktrace.