diff --git a/red/runtime/settings.js b/red/runtime/settings.js index ba913ea31..dd27dd3a5 100644 --- a/red/runtime/settings.js +++ b/red/runtime/settings.js @@ -55,7 +55,12 @@ var persistentSettings = { storage = _storage; return storage.getSettings().then(function(_settings) { globalSettings = _settings; - userSettings = globalSettings.users || {}; + if (globalSettings) { + userSettings = globalSettings.users || {}; + } + else { + userSettings = {}; + } }); }, get: function(prop) {