In some scenarios, some of the Kafka java data structures are nil/null.
E.g if the lead broker for a partition is not available, the returned PartitionMetaData will contain nil for it's leader which causes an IllegalArgumentException when to-clojure is applied.
In some scenarios, some of the Kafka java data structures are nil/null. E.g if the lead broker for a partition is not available, the returned PartitionMetaData will contain nil for it's leader which causes an IllegalArgumentException when to-clojure is applied.