You've already forked node-redis
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:
2
index.js
2
index.js
@@ -610,7 +610,7 @@ function try_callback(callback, reply) {
|
|||||||
function reply_to_object(reply) {
|
function reply_to_object(reply) {
|
||||||
var obj = {}, j, jl, key, val;
|
var obj = {}, j, jl, key, val;
|
||||||
|
|
||||||
if (reply.length === 0) {
|
if (reply.length === 0 || !Array.isArray(reply)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user