{"action":"created","issue":{"url":"https://api.github.com/repos/dboissier/mongo4idea/issues/181","repository_url":"https://api.github.com/repos/dboissier/mongo4idea","labels_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/181/comments","events_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/181/events","html_url":"https://github.com/dboissier/mongo4idea/issues/181","id":197135094,"number":181,"title":"Error while trying to delete database","user":{"login":"sylvainbx","id":5102799,"avatar_url":"https://avatars.githubusercontent.com/u/5102799?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvainbx","html_url":"https://github.com/sylvainbx","followers_url":"https://api.github.com/users/sylvainbx/followers","following_url":"https://api.github.com/users/sylvainbx/following{/other_user}","gists_url":"https://api.github.com/users/sylvainbx/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvainbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvainbx/subscriptions","organizations_url":"https://api.github.com/users/sylvainbx/orgs","repos_url":"https://api.github.com/users/sylvainbx/repos","events_url":"https://api.github.com/users/sylvainbx/events{/privacy}","received_events_url":"https://api.github.com/users/sylvainbx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-22T09:53:29Z","updated_at":"2016-12-22T12:29:22Z","closed_at":null,"body":"**Steps to reproduce**\r\n Select a database in the tree, press the delete key on the keyboard.\r\n\r\n**Resulting behavior**\r\nThe database is not deleted as expected and an error occurred.\r\n\r\n**Error stacktrace**\r\n```java\r\nnull\r\njava.lang.NullPointerException\r\n\tat org.codinjutsu.tools.mongo.view.action.DropCollectionAction.actionPerformed(DropCollectionAction.java:42)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:199)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:215)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:587)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:634)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:204)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:633)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.e(IdeKeyEventDispatcher.java:477)\r\n\tat com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:657)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n```\r\n\r\n**Other details**\r\nIf right clicking on the database, then selecting `Drop database`, the error does not occurs and the database is correctly dropped. "},"comment":{"url":"https://api.github.com/repos/dboissier/mongo4idea/issues/comments/268789996","html_url":"https://github.com/dboissier/mongo4idea/issues/181#issuecomment-268789996","issue_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/181","id":268789996,"user":{"login":"dboissier","id":763619,"avatar_url":"https://avatars.githubusercontent.com/u/763619?v=3","gravatar_id":"","url":"https://api.github.com/users/dboissier","html_url":"https://github.com/dboissier","followers_url":"https://api.github.com/users/dboissier/followers","following_url":"https://api.github.com/users/dboissier/following{/other_user}","gists_url":"https://api.github.com/users/dboissier/gists{/gist_id}","starred_url":"https://api.github.com/users/dboissier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dboissier/subscriptions","organizations_url":"https://api.github.com/users/dboissier/orgs","repos_url":"https://api.github.com/users/dboissier/repos","events_url":"https://api.github.com/users/dboissier/events{/privacy}","received_events_url":"https://api.github.com/users/dboissier/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T12:29:22Z","updated_at":"2016-12-22T12:29:22Z","body":"Hi,\r\n\r\nThanks for reporting this issue."}}
{"actor":{"display_login":"dboissier"}}