mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
ensure object before attempting to call function
This commit is contained in:
parent
5d698d66d0
commit
b102ef512e
@ -808,7 +808,7 @@ function handlePreRoute(flow, sendEvent, reportError) {
|
|||||||
return;
|
return;
|
||||||
} else if (err !== false) {
|
} else if (err !== false) {
|
||||||
sendEvent.destination.node = flow.getNode(sendEvent.destination.id);
|
sendEvent.destination.node = flow.getNode(sendEvent.destination.id);
|
||||||
if (sendEvent.destination.node) {
|
if (sendEvent.destination.node && typeof sendEvent.destination.node === 'object') {
|
||||||
if (sendEvent.cloneMessage) {
|
if (sendEvent.cloneMessage) {
|
||||||
sendEvent.msg = redUtil.cloneMessage(sendEvent.msg);
|
sendEvent.msg = redUtil.cloneMessage(sendEvent.msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user