{"action":"created","issue":{"url":"https://api.github.com/repos/jabbink/PokemonGoBot/issues/1147","repository_url":"https://api.github.com/repos/jabbink/PokemonGoBot","labels_url":"https://api.github.com/repos/jabbink/PokemonGoBot/issues/1147/labels{/name}","comments_url":"https://api.github.com/repos/jabbink/PokemonGoBot/issues/1147/comments","events_url":"https://api.github.com/repos/jabbink/PokemonGoBot/issues/1147/events","html_url":"https://github.com/jabbink/PokemonGoBot/issues/1147","id":171701202,"number":1147,"title":"Division by zero","user":{"login":"gise88","id":6855163,"avatar_url":"https://avatars.githubusercontent.com/u/6855163?v=3","gravatar_id":"","url":"https://api.github.com/users/gise88","html_url":"https://github.com/gise88","followers_url":"https://api.github.com/users/gise88/followers","following_url":"https://api.github.com/users/gise88/following{/other_user}","gists_url":"https://api.github.com/users/gise88/gists{/gist_id}","starred_url":"https://api.github.com/users/gise88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gise88/subscriptions","organizations_url":"https://api.github.com/users/gise88/orgs","repos_url":"https://api.github.com/users/gise88/repos","events_url":"https://api.github.com/users/gise88/events{/privacy}","received_events_url":"https://api.github.com/users/gise88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-17T16:24:23Z","updated_at":"2016-08-17T16:44:28Z","closed_at":null,"body":"**Description:**\r\nIf you enter a fully evolved pokemon inside the \"evolve_before_transfer\" list, the variable `pokemonMeta.candyToEvolve` (https://github.com/jabbink/PokemonGoBot/blob/develop/src/main/kotlin/ink/abb/pogo/scraper/tasks/EvolvePokemon.kt#L32) will be zero..\r\nI know, this is a user error but seems easy to prevent..\r\n\r\n**Steps to reproduce:**\r\nAdd a latest evolution of a pokemon inside the \"evolve_before_transfer\" list\r\n\r\n**Expected behavior:**\r\nWarn and ignore fully evolved pokemon\r\n\r\n**Actual behavior:**\r\n**Stacktrace (If it's a crash):**\r\n17 ago 18:07:43 [default: ProfileLoop] - Error running loop ProfileLoop!\r\njava.lang.ArithmeticException: / by zero\r\n        at ink.abb.pogo.scraper.tasks.EvolvePokemon.run(EvolvePokemon.kt:32)\r\n        at ink.abb.pogo.scraper.Bot.task(Bot.kt:262)\r\n        at ink.abb.pogo.scraper.Bot$start$3.invoke(Bot.kt:144)\r\n        at ink.abb.pogo.scraper.Bot$start$3.invoke(Bot.kt:36)\r\n        at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:204)\r\n        at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:36)\r\n        at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18)\r\n\r\n**Version:**\r\nhttps://github.com/jabbink/PokemonGoBot/commit/f9c163e1a481952616b9ef9bb77f694cd2ad15d5\r\n\r\n**Operating System:**\r\nDebian 8\r\n\r\n**Java version:**\r\njava version \"1.8.0_101\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_101-b13)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)\r\n\r\nLeave this sentence in your issue as proof that you have read and used this template.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jabbink/PokemonGoBot/issues/comments/240472452","html_url":"https://github.com/jabbink/PokemonGoBot/issues/1147#issuecomment-240472452","issue_url":"https://api.github.com/repos/jabbink/PokemonGoBot/issues/1147","id":240472452,"user":{"login":"AlexBoulyga","id":9548995,"avatar_url":"https://avatars.githubusercontent.com/u/9548995?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexBoulyga","html_url":"https://github.com/AlexBoulyga","followers_url":"https://api.github.com/users/AlexBoulyga/followers","following_url":"https://api.github.com/users/AlexBoulyga/following{/other_user}","gists_url":"https://api.github.com/users/AlexBoulyga/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexBoulyga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexBoulyga/subscriptions","organizations_url":"https://api.github.com/users/AlexBoulyga/orgs","repos_url":"https://api.github.com/users/AlexBoulyga/repos","events_url":"https://api.github.com/users/AlexBoulyga/events{/privacy}","received_events_url":"https://api.github.com/users/AlexBoulyga/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T16:44:27Z","updated_at":"2016-08-17T16:44:27Z","body":"This isnt possible currently @gise88 , or so I believe, as you cant delete anything from the settings object. Furthermore, if there will be new pokemon later on, it would be wise just to add a check if the pokemon can be evolved"}}
{"actor":{"display_login":"AlexBoulyga"}}