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
1 changed files with 5 additions and 1 deletions

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; }