Handle null node array references in catch/status nodes

This commit is contained in:
Nick O'Leary 2016-05-20 10:32:06 +01:00
parent 9a73568c7a
commit 2f6ed47168
1 changed files with 1 additions and 1 deletions

View File

@ -894,7 +894,7 @@ RED.nodes = (function() {
if (configNode && configNode.users.indexOf(n) === -1) {
configNode.users.push(n);
}
} else if (nodeTypeArrayReferences.hasOwnProperty(n.type) && nodeTypeArrayReferences[n.type] === d3) {
} else if (nodeTypeArrayReferences.hasOwnProperty(n.type) && nodeTypeArrayReferences[n.type] === d3 && n[d3] !== null) {
for (var j = 0;j<n[d3].length;j++) {
if (node_map[n[d3][j]]) {
n[d3][j] = node_map[n[d3][j]].id;