mranney/node_redis — pull request #344 by shin- (2012-12-12 08:32:22+00:00)
Title: hmget breaks on null values if used with detect_buffers

Hi!

The following code snippet reproduces the problem:

var redis = require('redis');

var clt = redis.createClient(6379, 'localhost', { detect_buffers : true });

clt.del('foo_129000', function(err) {
if (err) throw err;
clt.hmget('foo_129000', 'bar', 'baz', function(err, arr) {
if (err) throw err;
console.log(arr);
});
});

The pull request patches reply_to_strings() to avoid calling toString() on null/undefined values