diff --git a/index.js b/index.js index 834b43c48b..98386405e4 100644 --- a/index.js +++ b/index.js @@ -551,7 +551,7 @@ function reply_to_strings(reply) { if (Array.isArray(reply)) { for (i = 0; i < reply.length; i++) { - reply[i] = reply[i].toString(); + reply[i] = reply[i] ? reply[i].toString() : reply[i]; } return reply; }