Skip to content

Commit 3b6f6b3

Browse files
authored
fix: prevent null pointer exception (#135)
1 parent b9abc60 commit 3b6f6b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis_client/cluster/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def call_multiple_nodes(clients, method, command, args, &block)
232232
client.send(method, *args, command, &block)
233233
end
234234

235-
[results.values, errors]
235+
[results&.values, errors]
236236
end
237237

238238
def call_multiple_nodes!(clients, method, command, args, &block)

0 commit comments

Comments
 (0)