Skip to content

Commit 6f1acb0

Browse files
committed
Fixed bug where buffer hgetall's in a multi would throw exceptions
1 parent 08f1a4d commit 6f1acb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ function try_callback(callback, reply) {
610610
function reply_to_object(reply) {
611611
var obj = {}, j, jl, key, val;
612612

613-
if (reply.length === 0) {
613+
if (reply.length === 0 || !Array.isArray(reply)) {
614614
return null;
615615
}
616616

0 commit comments

Comments
 (0)