{"action":"created","issue":{"url":"https://api.github.com/repos/adrianlee44/atom-aligner/issues/28","labels_url":"https://api.github.com/repos/adrianlee44/atom-aligner/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/adrianlee44/atom-aligner/issues/28/comments","events_url":"https://api.github.com/repos/adrianlee44/atom-aligner/issues/28/events","html_url":"https://github.com/adrianlee44/atom-aligner/issues/28","id":106343596,"number":28,"title":"Uncaught TypeError: Cannot read property 'selector' of null","user":{"login":"SeanJM","id":1385674,"avatar_url":"https://avatars.githubusercontent.com/u/1385674?v=3","gravatar_id":"","url":"https://api.github.com/users/SeanJM","html_url":"https://github.com/SeanJM","followers_url":"https://api.github.com/users/SeanJM/followers","following_url":"https://api.github.com/users/SeanJM/following{/other_user}","gists_url":"https://api.github.com/users/SeanJM/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanJM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanJM/subscriptions","organizations_url":"https://api.github.com/users/SeanJM/orgs","repos_url":"https://api.github.com/users/SeanJM/repos","events_url":"https://api.github.com/users/SeanJM/events{/privacy}","received_events_url":"https://api.github.com/users/SeanJM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-14T13:43:50Z","updated_at":"2015-09-14T18:23:34Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. in JavaScript, use aligner to align :\r\n  var target              = this.event.target;\r\n  var inDropdown          = isNode(target.closest('.dropdown'));\r\n  var isScrollbar         = helper.scrollbar.isComponent(target);\r\n  var isInit              = dingo.keys(this.node).has('dingo_init');\r\n  var scrollInDropdown = isScrollbar && inDropdown;\r\n\r\n**Atom Version**: 1.0.11\r\n**System**: Mac OS X 10.10.5\r\n**Thrown From**: [aligner](https://github.com/adrianlee44/atom-aligner) package, v0.16.0\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'selector' of null\r\n\r\n```\r\nAt /Users/sean/.atom/packages/aligner/lib/operator-config.coffee:131\r\n\r\nTypeError: Cannot read property 'selector' of null\r\n    at OperationConfig.getConfig (/Users/sean/.atom/packages/aligner/lib/operator-config.coffee:131:5)\r\n    at Object.getTokenizedAlignCharacter (/Users/sean/.atom/packages/aligner/lib/helper.coffee:137:1)\r\n    at Aligner.alignAtRow (/Users/sean/.atom/packages/aligner/lib/main.coffee:13:5)\r\n    at Aligner.align (/Users/sean/.atom/packages/aligner/lib/main.coffee:13:5)\r\n    at atom-text-editor.<anonymous> (/Users/sean/.atom/packages/aligner/lib/main.coffee:1:1)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:245: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:524:16)\r\n    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)\r\n    at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:184:20)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:09.3.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)\r\n     -0:09.1.0 core:move-left (atom-text-editor.editor.is-focused)\r\n     -0:08.8.0 core:backspace (atom-text-editor.editor.is-focused)\r\n     -0:08.4.0 core:move-down (atom-text-editor.editor.is-focused)\r\n     -0:07.9.0 core:move-up (atom-text-editor.editor.is-focused)\r\n     -0:07.8.0 core:move-left (atom-text-editor.editor.is-focused)\r\n  6x -0:07.7.0 editor:move-to-beginning-of-word (atom-text-editor.editor.is-focused)\r\n     -0:06.4.0 editor:move-to-end-of-word (atom-text-editor.editor.is-focused)\r\n  5x -0:06.1.0 core:move-right (atom-text-editor.editor.is-focused)\r\n     -0:05.2.0 editor:select-to-beginning-of-word (atom-text-editor.editor.is-focused)\r\n     -0:04.1.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)\r\n     -0:04.1.0 core:cancel (atom-text-editor.editor.is-focused)\r\n     -0:03.1.0 aligner:align (atom-text-editor.editor.is-focused)\r\n     -0:02.3.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)\r\n     -0:02.3.0 core:cancel (atom-text-editor.editor.is-focused)\r\n     -0:00.4.0 aligner:align (atom-text-editor.editor.is-focused)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"projectHome\": \"/Users/sean/Dropbox/\",\r\n    \"ignoredNames\": [\r\n      \".sass-cache\",\r\n      \"node_modules\",\r\n      \".git\",\r\n      \"bin\",\r\n      \".DS_Store*\"\r\n    ],\r\n    \"disabledPackages\": [\r\n      \"css-comb\",\r\n      \"csscomb\"\r\n    ],\r\n    \"themes\": [\r\n      \"one-light-ui\",\r\n      \"myth-syntax\"\r\n    ]\r\n  },\r\n  \"aligner\": {\r\n    \":-leftSpace\": true,\r\n    \",-leftSpace\": true,\r\n    \":-alignment\": \"left\"\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\naligner, v0.16.0\r\naligner-css, v1.2.0\r\naligner-scss, v1.1.0\r\ncolor-picker, v2.0.11\r\nemmet, v2.3.12\r\nmyth-syntax, v0.0.0\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/adrianlee44/atom-aligner/issues/comments/140166151","html_url":"https://github.com/adrianlee44/atom-aligner/issues/28#issuecomment-140166151","issue_url":"https://api.github.com/repos/adrianlee44/atom-aligner/issues/28","id":140166151,"user":{"login":"adrianlee44","id":208855,"avatar_url":"https://avatars.githubusercontent.com/u/208855?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianlee44","html_url":"https://github.com/adrianlee44","followers_url":"https://api.github.com/users/adrianlee44/followers","following_url":"https://api.github.com/users/adrianlee44/following{/other_user}","gists_url":"https://api.github.com/users/adrianlee44/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianlee44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianlee44/subscriptions","organizations_url":"https://api.github.com/users/adrianlee44/orgs","repos_url":"https://api.github.com/users/adrianlee44/repos","events_url":"https://api.github.com/users/adrianlee44/events{/privacy}","received_events_url":"https://api.github.com/users/adrianlee44/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T18:23:34Z","updated_at":"2015-09-14T18:23:34Z","body":"@SeanJM, thanks for reporting this. Looking into this."}}