Merge pull request #4166 from node-red/fix-RBE-for-missing-payload

Fix RBE for missing "payload"
This commit is contained in:
Nick O'Leary 2023-05-22 12:49:07 +01:00 committed by GitHub
commit 4b88775183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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; }