pingles / clj-hector

Simple Cassandra client for Clojure
42 stars 19 forks source link

Throw NPE with message when serializer is null. #53

Closed ryfow closed 11 years ago

ryfow commented 11 years ago

Spelling a serializer keyword wrong results in an NPE, but one that's annoying to track down. This is a little more up-front about the error.

I'm not sure if there's a more idiomatic way of doing this null-check. Let me know if you want this done in a different way.

pingles commented 11 years ago

Thank you for your changes- those kinds of problems can definitely be hard to track down. I've released the code on Clojars as version 0.3.1.