{"action":"opened","issue":{"url":"https://api.github.com/repos/amitmtrn/atom-ftp-editor/issues/10","labels_url":"https://api.github.com/repos/amitmtrn/atom-ftp-editor/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/amitmtrn/atom-ftp-editor/issues/10/comments","events_url":"https://api.github.com/repos/amitmtrn/atom-ftp-editor/issues/10/events","html_url":"https://github.com/amitmtrn/atom-ftp-editor/issues/10","id":126532691,"number":10,"title":"Uncaught TypeError: Cannot read property 'file' of undefined","user":{"login":"turcuciprian","id":3309840,"avatar_url":"https://avatars.githubusercontent.com/u/3309840?v=3","gravatar_id":"","url":"https://api.github.com/users/turcuciprian","html_url":"https://github.com/turcuciprian","followers_url":"https://api.github.com/users/turcuciprian/followers","following_url":"https://api.github.com/users/turcuciprian/following{/other_user}","gists_url":"https://api.github.com/users/turcuciprian/gists{/gist_id}","starred_url":"https://api.github.com/users/turcuciprian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turcuciprian/subscriptions","organizations_url":"https://api.github.com/users/turcuciprian/orgs","repos_url":"https://api.github.com/users/turcuciprian/repos","events_url":"https://api.github.com/users/turcuciprian/events{/privacy}","received_events_url":"https://api.github.com/users/turcuciprian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-13T22:38:20Z","updated_at":"2016-01-13T22:38:20Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom Version**: 1.4.0\r\n**System**: Mac OS X 10.11.2\r\n**Thrown From**: [atom-ftp-editor](https://github.com/amitmtrn/atom-ftp-editor) package, v0.5.0\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'file' of undefined\r\n\r\n```\r\nAt /Users/turcuciprian/.atom/packages/atom-ftp-editor/lib/main.js:122\r\n\r\nTypeError: Cannot read property 'file' of undefined\r\n    at Object.module.exports.AtomFtpEditor.__getCurrentFile (/Users/turcuciprian/.atom/packages/atom-ftp-editor/lib/main.js:122:60)\r\n    at atom-workspace.module.exports.AtomFtpEditor.currentDownload (/Users/turcuciprian/.atom/packages/atom-ftp-editor/lib/main.js:57:35)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)\r\n    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)\r\n    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)\r\n    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1019:28)\r\n    at emitTwo (events.js:87:13)\r\n    at EventEmitter.emit (events.js:172:7)\r\n    at EventEmitter.ipc.sendSync (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/ipc.js:21:31)\r\n    at BrowserWindow.RemoteMemberFunction [as emit] (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/remote.js:143:29)\r\n    at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/context-menu-manager.js:156:33)\r\n    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentContextmenu (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:250:47)\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:00.7.0 ftp-editor:current-download (span.name.icon.icon-file-directory)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {},\r\n  \"atom-ftp-editor\": {}\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-ftp-editor, v0.5.0\r\ncolor-picker, v2.0.14\r\nminimap, v4.19.0\r\nquick-highlight, v0.3.10\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"}}