{"action":"closed","issue":{"url":"https://api.github.com/repos/spadarian/docblock-python/issues/5","repository_url":"https://api.github.com/repos/spadarian/docblock-python","labels_url":"https://api.github.com/repos/spadarian/docblock-python/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/spadarian/docblock-python/issues/5/comments","events_url":"https://api.github.com/repos/spadarian/docblock-python/issues/5/events","html_url":"https://github.com/spadarian/docblock-python/issues/5","id":314969903,"number":5,"title":"Uncaught TypeError: Cannot read property 'map' of null","user":{"login":"cebel","id":6870804,"avatar_url":"https://avatars2.githubusercontent.com/u/6870804?v=4","gravatar_id":"","url":"https://api.github.com/users/cebel","html_url":"https://github.com/cebel","followers_url":"https://api.github.com/users/cebel/followers","following_url":"https://api.github.com/users/cebel/following{/other_user}","gists_url":"https://api.github.com/users/cebel/gists{/gist_id}","starred_url":"https://api.github.com/users/cebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebel/subscriptions","organizations_url":"https://api.github.com/users/cebel/orgs","repos_url":"https://api.github.com/users/cebel/repos","events_url":"https://api.github.com/users/cebel/events{/privacy}","received_events_url":"https://api.github.com/users/cebel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-17T09:07:41Z","updated_at":"2018-04-18T07:11:14Z","closed_at":"2018-04-18T07:11:14Z","author_association":"NONE","body":"Generate_docblock works for \r\n```python\r\nclass Test:\r\n    def __init__(self, a):\r\n        pass\r\n```\r\nbut not for default value in __init__\r\n```python\r\nclass Test:\r\n    def __init__(self, a=1):\r\n        pass\r\n```\r\n\r\n**Atom**: 1.25.1 x64\r\n**Electron**: 1.7.11\r\n**OS**: Ubuntu 16.04.4\r\n**Thrown From**: [docblock-python](https://github.com/spadarian/docblock-python) package 0.5.0\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'map' of null\r\n\r\n```\r\nAt /home/ceb/.atom/packages/docblock-python/lib/docblock-python.js:320\r\n\r\nTypeError: Cannot read property 'map' of null\r\n    at Object.process_class (/packages/docblock-python/lib/docblock-python.js:320:28)\r\n    at /packages/docblock-python/lib/docblock-python.js:142:35\r\n    at Object.generate_docblock (/packages/docblock-python/lib/docblock-python.js:155:13)\r\n    at HTMLElement.docblockPythonGenerate_docblock (/packages/docblock-python/lib/docblock-python.js:81:55)\r\n    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:384:49)\r\n    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)\r\n    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)\r\n    at WindowEventHandler.handleDocumentKeyEvent (/usr/share/atom/resources/app/src/window-event-handler.js:110:40)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:51.7.0 atom-updater-linux:check (input.hidden-input)\r\n     -0:40.9.0 docblock-python:generate_docblock (input.hidden-input)\r\n```\r\n\r\n### Non-Core Packages\r\n\r\n```\r\natom-csv-markdown 1.0.2 \r\natom-html-preview 0.2.5 \r\natom-latex 0.8.4 \r\natom-python-run 0.9.6 \r\natom-updater-linux 1.1.2 \r\nautocomplete 0.47.0 \r\nautocomplete-boilerplate 0.2.0 \r\nautocomplete-python 1.10.5 \r\nbrowser-plus 0.0.98 \r\ndocblock-python 0.5.0 \r\nfile-icons 2.1.18 \r\ngitlab-integration 0.4.7 \r\nHydrogen 2.4.1 \r\nimport 1.7.0 \r\nlanguage-bel 0.1.0 \r\nlanguage-latex 1.1.1 \r\nlanguage-restructuredtext 1.1.2 \r\nlatex 0.50.0 \r\nmarkdown-pdf 2.1.0 \r\nmarkdown-preview-enhanced 0.15.6 \r\nmarkdown-toc 0.4.2 \r\nopen-unsupported-files 1.0.20 \r\npandoc-convert 1.1.1 \r\nplatformio-ide-terminal 2.8.1 \r\npython-autopep8 0.1.3 \r\npython-tools 0.6.9 \r\nquick-query 0.12.4 \r\nquick-query-sqlite 0.3.1 \r\nrst-preview 1.3.1 \r\nrst-preview-pandoc 0.1.12 \r\nscript 3.17.3 \r\ntablr 1.8.3 \r\ntodo-show 2.3.0 \r\n```\r\n\r\n"}}
{"actor":{"display_login":"spadarian"}}