mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Handle null node array references in catch/status nodes
This commit is contained in:
parent
9a73568c7a
commit
2f6ed47168
@ -894,7 +894,7 @@ RED.nodes = (function() {
|
|||||||
if (configNode && configNode.users.indexOf(n) === -1) {
|
if (configNode && configNode.users.indexOf(n) === -1) {
|
||||||
configNode.users.push(n);
|
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++) {
|
for (var j = 0;j<n[d3].length;j++) {
|
||||||
if (node_map[n[d3][j]]) {
|
if (node_map[n[d3][j]]) {
|
||||||
n[d3][j] = node_map[n[d3][j]].id;
|
n[d3][j] = node_map[n[d3][j]].id;
|
||||||
|
Loading…
Reference in New Issue
Block a user