From 3086806446c515f4251a93b039620d0622411436 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Thu, 24 Mar 2016 12:04:10 -0700 Subject: [PATCH] fix(specs): Add check when patching Google Inbox keymaps from 07d218d - This was preventing the specs from running --- src/keymap-manager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)