From 229be2068cf0db44ce7ec3139b3f8c2e3f3fc587 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Wed, 12 Dec 2012 00:22:41 -0800 Subject: [PATCH] Support null values in arrays in reply_to_strings() --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }