From 86013c7db473a5c0e6b60e1838fda7c4512f6d2c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 4 May 2015 23:28:55 +0100 Subject: [PATCH] Ensure node.credentials exists for nodes with registered creds Fixes #639 --- red/nodes/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/red/nodes/index.js b/red/nodes/index.js index 118d5cac4..3490955c9 100644 --- a/red/nodes/index.js +++ b/red/nodes/index.js @@ -47,6 +47,8 @@ function createNode(node,def) { if (creds) { //console.log("Attaching credentials to ",node.id); node.credentials = creds; + } else if (credentials.getDefinition(node.type)) { + node.credentials = {}; } }