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

Fix RBE for missing "payload"

To close #4165
This commit is contained in:
Dave Conway-Jones 2023-05-08 09:28:35 +01:00
parent e5d579c1bb
commit 67c5a248ad
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643

View File

@ -35,7 +35,11 @@ module.exports = function(RED) {
}
else { node.previous = {}; }
}
var value = RED.util.getMessageProperty(msg,node.property);
var value;
try {
value = RED.util.getMessageProperty(msg,node.property);
}
catch(e) { }
if (value !== undefined) {
var t = "_no_topic";
if (node.septopics) { t = topic || t; }