{"action":"created","issue":{"url":"https://api.github.com/repos/jeremyosborne/linter-js-tenx/issues/2","repository_url":"https://api.github.com/repos/jeremyosborne/linter-js-tenx","labels_url":"https://api.github.com/repos/jeremyosborne/linter-js-tenx/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jeremyosborne/linter-js-tenx/issues/2/comments","events_url":"https://api.github.com/repos/jeremyosborne/linter-js-tenx/issues/2/events","html_url":"https://github.com/jeremyosborne/linter-js-tenx/issues/2","id":148450070,"number":2,"title":"Uncaught TypeError: Cannot convert undefined or null to object","user":{"login":"adc-jasonc","id":12174345,"avatar_url":"https://avatars.githubusercontent.com/u/12174345?v=3","gravatar_id":"","url":"https://api.github.com/users/adc-jasonc","html_url":"https://github.com/adc-jasonc","followers_url":"https://api.github.com/users/adc-jasonc/followers","following_url":"https://api.github.com/users/adc-jasonc/following{/other_user}","gists_url":"https://api.github.com/users/adc-jasonc/gists{/gist_id}","starred_url":"https://api.github.com/users/adc-jasonc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adc-jasonc/subscriptions","organizations_url":"https://api.github.com/users/adc-jasonc/orgs","repos_url":"https://api.github.com/users/adc-jasonc/repos","events_url":"https://api.github.com/users/adc-jasonc/events{/privacy}","received_events_url":"https://api.github.com/users/adc-jasonc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-14T18:50:24Z","updated_at":"2016-04-14T23:02:02Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. Open Atom on a non-ten-x project and throw error below\r\n\r\n\r\n\r\n**Atom Version**: 1.7.0\r\n**System**: Mac OS X 10.10.5\r\n**Thrown From**: [linter-js-tenx](https://github.com/jeremyosborne/linter-js-tenx) package, v3.2.7\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot convert undefined or null to object\r\n\r\n```\r\nAt /Users/jchu/.atom/packages/linter-js-tenx/lib/utils/select-style.js:26\r\n\r\nTypeError: Cannot convert undefined or null to object\r\n    at Function.keys (native)\r\n    at getStyleThroughDevDeps (/Users/jchu/.atom/packages/linter-js-tenx/lib/utils/select-style.js:26:42)\r\n    at selectStyle (/Users/jchu/.atom/packages/linter-js-tenx/lib/utils/select-style.js:48:12)\r\n    at Object.module.exports.__cacheTextEditor (/Users/jchu/.atom/packages/linter-js-tenx/lib/init.js:92:17)\r\n    at storeSettings (/Users/jchu/.atom/packages/linter-js-tenx/lib/init.js:64:16)\r\n    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)\r\n    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:346:27\r\n    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)\r\n    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)\r\n    at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:282:22)\r\n    at Pane.module.exports.Pane.activateItemAtIndex (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:414:19)\r\n    at Pane.module.exports.Pane.activatePreviousItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:379:21)\r\n    at Pane.module.exports.Pane.removeItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:564:16)\r\n    at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:637:16)\r\n    at Pane.module.exports.Pane.destroyActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:617:12)\r\n    at Workspace.module.exports.Workspace.destroyActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:692:35)\r\n    at Workspace.module.exports.Workspace.closeActivePaneItemOrEmptyPaneOrWindow (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:731:21)\r\n    at atom-workspace.commandRegistry.add.core:close (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:211:32)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61\r\n    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)\r\n    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)\r\n    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)\r\n    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:10.3.0 core:close (atom-text-editor.editor.is-focused)\r\n     -0:09.5.0 project-manager:list-projects (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-light-syntax.theme-one-light-ui)\r\n     -0:07.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)\r\n     -0:00.6.0 core:close (atom-pane.pane.active)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"disabledPackages\": [\r\n      \"whitespace\",\r\n      \"linter-jshint\",\r\n      \"linter-eslint\"\r\n    ],\r\n    \"excludeVcsIgnoredPaths\": false,\r\n    \"themes\": [\r\n      \"one-light-ui\",\r\n      \"one-light-syntax\"\r\n    ]\r\n  },\r\n  \"linter-js-tenx\": {\r\n    \"checkStyleDevDependencies\": true\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-ternjs, v0.13.2\r\nautoclose-html, v0.23.0\r\nlinter, v1.11.4\r\nlinter-js-tenx, v3.2.7\r\nminimap, v4.21.0\r\nnode-debugger, v1.4.7\r\nproject-manager, v2.9.7\r\nreact, v0.15.0\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jeremyosborne/linter-js-tenx/issues/comments/210194861","html_url":"https://github.com/jeremyosborne/linter-js-tenx/issues/2#issuecomment-210194861","issue_url":"https://api.github.com/repos/jeremyosborne/linter-js-tenx/issues/2","id":210194861,"user":{"login":"jeremyosborne","id":160639,"avatar_url":"https://avatars.githubusercontent.com/u/160639?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyosborne","html_url":"https://github.com/jeremyosborne","followers_url":"https://api.github.com/users/jeremyosborne/followers","following_url":"https://api.github.com/users/jeremyosborne/following{/other_user}","gists_url":"https://api.github.com/users/jeremyosborne/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyosborne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyosborne/subscriptions","organizations_url":"https://api.github.com/users/jeremyosborne/orgs","repos_url":"https://api.github.com/users/jeremyosborne/repos","events_url":"https://api.github.com/users/jeremyosborne/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyosborne/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T23:02:02Z","updated_at":"2016-04-14T23:02:02Z","body":"@adc-jasonc something like this happened to me early on, too, and I don't know exactly why. I did the equivalent of a three finger salute: I closed atom and reopened it and it was fine."}}