1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure inject payload exists

This commit is contained in:
Nick O'Leary 2016-01-04 14:27:47 +00:00
parent 38168a545b
commit 55f1cbf18f

View File

@ -58,7 +58,7 @@ module.exports = function(RED) {
} else if (this.payloadType == 'none') { } else if (this.payloadType == 'none') {
msg.payload = ""; msg.payload = "";
} else { } else {
msg.payload = RED.util.evaluateNodeProperty(this.payload,this.payloadType,this,msg); msg.payload = RED.util.evaluateNodeProperty(this.payload,this.payloadType,this,msg)||"";
} }
this.send(msg); this.send(msg);
msg = null; msg = null;