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

Handle null message in catch loop detection

This commit is contained in:
Nick O'Leary 2015-06-15 15:22:51 +01:00
parent c5fd3a5753
commit 21d0adbdae

View File

@ -753,7 +753,7 @@ Flow.prototype.handleError = function(node,logMessage,msg) {
if (targetCatchNode) { if (targetCatchNode) {
var count = 1; var count = 1;
if (msg.hasOwnProperty("error")) { if (msg && msg.hasOwnProperty("error")) {
if (msg.error.hasOwnProperty("source")) { if (msg.error.hasOwnProperty("source")) {
if (msg.error.source.id === node.id) { if (msg.error.source.id === node.id) {
count = msg.error.source.count+1; count = msg.error.source.count+1;