Skip to content
This repository
Browse code

Support null values in arrays in reply_to_strings()

  • Loading branch information...
commit 229be2068cf0db44ce7ec3139b3f8c2e3f3fc587 1 parent a5dc989
Joffrey F authored December 12, 2012 brycebaril committed March 16, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  index.js
2  index.js
@@ -551,7 +551,7 @@ function reply_to_strings(reply) {
551 551
 
552 552
     if (Array.isArray(reply)) {
553 553
         for (i = 0; i < reply.length; i++) {
554  
-            reply[i] = reply[i].toString();
  554
+            reply[i] = reply[i] ? reply[i].toString() : reply[i];
555 555
         }
556 556
         return reply;
557 557
     }

0 notes on commit 229be20

Please sign in to comment.
Something went wrong with that request. Please try again.