From 66459f1bd6523a51cc26cbbe53e32f11030e63ea Mon Sep 17 00:00:00 2001 From: Mark Hindess Date: Wed, 9 Jul 2014 08:01:52 +0100 Subject: [PATCH] Short circuit the null message case. --- red/nodes/Node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red/nodes/Node.js b/red/nodes/Node.js index 64fbd079c..c2fdc7c4f 100644 --- a/red/nodes/Node.js +++ b/red/nodes/Node.js @@ -62,7 +62,7 @@ Node.prototype.close = function() { Node.prototype.send = function(msg) { // instanceof doesn't work for some reason here if (msg == null) { - msg = []; + return; } else if (!util.isArray(msg)) { msg = [msg]; }