diff --git a/red/runtime/nodes/context/index.js b/red/runtime/nodes/context/index.js index 9e159f6bb..467aa7b74 100644 --- a/red/runtime/nodes/context/index.js +++ b/red/runtime/nodes/context/index.js @@ -35,11 +35,13 @@ var hasConfiguredStore = false; var unknownStores = {}; function logUnknownStore(name) { - var count = unknownStores[name] || 0; - if (count == 0) { - log.warn(log._("context.unknown-store", {name: name})); - count++; - unknownStores[name] = count; + if (name) { + var count = unknownStores[name] || 0; + if (count == 0) { + log.warn(log._("context.unknown-store", {name: name})); + count++; + unknownStores[name] = count; + } } }