From 12c4561abae5fc4c20af82ea226c2f5c9459e9c4 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sun, 13 Mar 2016 13:25:38 +0000 Subject: [PATCH] Handle missing config nodes when validating node properties --- editor/js/ui/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index 1921ab449..339eb44c2 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -126,8 +126,8 @@ RED.editor = (function() { if (!value || value == "_ADD_") { valid = definition[property].hasOwnProperty("required") && !definition[property].required; } else { - var v = RED.nodes.node(value).valid; - valid = (v==null || v); + var configNode = RED.nodes.node(value); + valid = (configNode !== null && (configNode.valid == null || configNode.valid)); } } return valid;