{"action":"created","issue":{"url":"https://api.github.com/repos/magefree/mage/issues/1242","labels_url":"https://api.github.com/repos/magefree/mage/issues/1242/labels{/name}","comments_url":"https://api.github.com/repos/magefree/mage/issues/1242/comments","events_url":"https://api.github.com/repos/magefree/mage/issues/1242/events","html_url":"https://github.com/magefree/mage/issues/1242","id":104587256,"number":1242,"title":"Random deck generation error handling missing","user":{"login":"LevelX2","id":2066790,"avatar_url":"https://avatars.githubusercontent.com/u/2066790?v=3","gravatar_id":"","url":"https://api.github.com/users/LevelX2","html_url":"https://github.com/LevelX2","followers_url":"https://api.github.com/users/LevelX2/followers","following_url":"https://api.github.com/users/LevelX2/following{/other_user}","gists_url":"https://api.github.com/users/LevelX2/gists{/gist_id}","starred_url":"https://api.github.com/users/LevelX2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LevelX2/subscriptions","organizations_url":"https://api.github.com/users/LevelX2/orgs","repos_url":"https://api.github.com/users/LevelX2/repos","events_url":"https://api.github.com/users/LevelX2/events{/privacy}","received_events_url":"https://api.github.com/users/LevelX2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magefree/mage/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/magefree/mage/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"Simown","id":1081915,"avatar_url":"https://avatars.githubusercontent.com/u/1081915?v=3","gravatar_id":"","url":"https://api.github.com/users/Simown","html_url":"https://github.com/Simown","followers_url":"https://api.github.com/users/Simown/followers","following_url":"https://api.github.com/users/Simown/following{/other_user}","gists_url":"https://api.github.com/users/Simown/gists{/gist_id}","starred_url":"https://api.github.com/users/Simown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simown/subscriptions","organizations_url":"https://api.github.com/users/Simown/orgs","repos_url":"https://api.github.com/users/Simown/repos","events_url":"https://api.github.com/users/Simown/events{/privacy}","received_events_url":"https://api.github.com/users/Simown/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-09-02T22:50:24Z","updated_at":"2015-09-03T20:22:54Z","closed_at":null,"body":"If not enough cards for deck generation are available no error message is shown. (BFZ)\r\nIf no basic lands are included no error masic is shown. (DTK)"},"comment":{"url":"https://api.github.com/repos/magefree/mage/issues/comments/137563445","html_url":"https://github.com/magefree/mage/issues/1242#issuecomment-137563445","issue_url":"https://api.github.com/repos/magefree/mage/issues/1242","id":137563445,"user":{"login":"LevelX2","id":2066790,"avatar_url":"https://avatars.githubusercontent.com/u/2066790?v=3","gravatar_id":"","url":"https://api.github.com/users/LevelX2","html_url":"https://github.com/LevelX2","followers_url":"https://api.github.com/users/LevelX2/followers","following_url":"https://api.github.com/users/LevelX2/following{/other_user}","gists_url":"https://api.github.com/users/LevelX2/gists{/gist_id}","starred_url":"https://api.github.com/users/LevelX2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LevelX2/subscriptions","organizations_url":"https://api.github.com/users/LevelX2/orgs","repos_url":"https://api.github.com/users/LevelX2/repos","events_url":"https://api.github.com/users/LevelX2/events{/privacy}","received_events_url":"https://api.github.com/users/LevelX2/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T20:22:54Z","updated_at":"2015-09-03T20:22:54Z","body":"I'm getting no dialog to the client only the following exception the client log:\r\n\r\njava.lang.IllegalStateException: Not enough cards to generate deck.\r\n\tat mage.client.deck.generator.DeckGenerator.generateSpells(DeckGenerator.java:227)\r\n\tat mage.client.deck.generator.DeckGenerator.generateDeck(DeckGenerator.java:171)\r\n\tat mage.client.deck.generator.DeckGenerator.buildDeck(DeckGenerator.java:98)\r\n\tat mage.client.deck.generator.DeckGenerator.generateDeck(DeckGenerator.java:66)\r\n\tat mage.client.table.NewPlayerPanel.generateDeck(NewPlayerPanel.java:97)\r\n\tat mage.client.table.NewPlayerPanel.btnGenerateActionPerformed(NewPlayerPanel.java:220)\r\n\tat mage.client.table.NewPlayerPanel.access$100(NewPlayerPanel.java:49)\r\n\tat mage.client.table.NewPlayerPanel$2.actionPerformed(NewPlayerPanel.java:165)\r\n\tat javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)\r\n\tat javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)\r\n\tat javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)\r\n\tat javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)\r\n\tat javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)\r\n\tat java.awt.Component.processMouseEvent(Component.java:6525)\r\n\tat javax.swing.JComponent.processMouseEvent(JComponent.java:3324)\r\n\tat java.awt.Component.processEvent(Component.java:6290)\r\n\tat java.awt.Container.processEvent(Container.java:2234)\r\n\tat java.awt.Component.dispatchEventImpl(Component.java:4881)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2292)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4703)"}}