diff --git a/src/keymap-manager.coffee b/src/keymap-manager.coffee index 07a6fa25b..9764d8d81 100644 --- a/src/keymap-manager.coffee +++ b/src/keymap-manager.coffee @@ -32,7 +32,7 @@ class KeymapManager extends AtomKeymap templateKeymapPath = null reloadTemplateKeymap = => @removeBindingsFromSource(templateKeymapPath) if templateKeymapPath - templateFile = NylasEnv.config.get(templateConfigKey).replace("GoogleInbox", "Inbox by Gmail") + templateFile = NylasEnv.config.get(templateConfigKey)?.replace("GoogleInbox", "Inbox by Gmail") if templateFile templateKeymapPath = fs.resolve(path.join(@resourcePath, 'keymaps', 'templates'), templateFile, ['cson', 'json']) if fs.existsSync(templateKeymapPath)