clojurewerkz / spyglass

A Clojure Memcached client (also: Couchbase, Kestrel). Built on top of SpyMemcached, supports ASCII and binary protocols, strives to be 100% feature complete.
http://clojurememcached.info
67 stars 17 forks source link

gets throws NullPointerException when passed a key that doesn't exist. #4

Closed apage43 closed 11 years ago

apage43 commented 12 years ago

(.gets connection) will return nil for keys that don't exist, and (.getValue) and (.getCas) will throws exceptions. Should probably check if a nil comes back and return nil.