From 6f1acb0678f7288973e05456bd8a4facf889635c Mon Sep 17 00:00:00 2001 From: Raymond Myers Date: Tue, 31 Mar 2015 23:09:57 -0700 Subject: [PATCH] Fixed bug where buffer hgetall's in a multi would throw exceptions --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f2d5ed43cc..abee2973b7 100644 --- a/index.js +++ b/index.js @@ -610,7 +610,7 @@ function try_callback(callback, reply) { function reply_to_object(reply) { var obj = {}, j, jl, key, val; - if (reply.length === 0) { + if (reply.length === 0 || !Array.isArray(reply)) { return null; }