1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Fixed bug where buffer hgetall's in a multi would throw exceptions

This commit is contained in:
Raymond Myers
2015-03-31 23:09:57 -07:00
committed by Ray Myers
parent 08f1a4de18
commit 6f1acb0678

View File

@@ -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;
}