diff --git a/nodes/core/io/31-tcpin.js b/nodes/core/io/31-tcpin.js index 4a9650802..776ce942a 100644 --- a/nodes/core/io/31-tcpin.js +++ b/nodes/core/io/31-tcpin.js @@ -461,8 +461,10 @@ module.exports = function(RED) { } } else if (node.splitc === 0) { - clients[connection_id].msg.payload = data; - node.send(clients[connection_id].msg); + if (clients[connection_id]) { + clients[connection_id].msg.payload = data; + node.send(clients[connection_id].msg); + } } else { for (var j = 0; j < data.length; j++ ) {