diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 5a86d5ab3..e37372317 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -217,7 +217,8 @@ const WorkspaceTracker = new Lang.Class({ _getWorkspaceSettings: function() { let settings = global.get_overrides_settings(); - if (settings.settings_schema.list_keys().indexOf('dynamic-workspaces') > -1) + if (settings && + settings.settings_schema.list_keys().indexOf('dynamic-workspaces') > -1) return settings; return new Gio.Settings({ schema_id: 'org.gnome.mutter' }); },