pingles / clj-kafka

Wrapper to the Java API for interacting with Kafka
Eclipse Public License 1.0
211 stars 77 forks source link

Extend ToClojure protocol to nil #40

Closed DayoOliyide closed 9 years ago

DayoOliyide commented 9 years ago

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.