SwipeX / PokeMate

Automated PokemonGo Application
GNU General Public License v3.0
111 stars 45 forks source link

NullPointerException at dekk.pw.pokemate.tasks.EvolvePokemon.run(EvolvePokemon.java:55) #204

Closed SSinischo closed 8 years ago

SSinischo commented 8 years ago

Shortly after running the script. Stops after this.

[10:01:31] - Goldeen has evolved into Seaking costing 50 candies Exception in thread "Thread-2" java.lang.NullPointerException at dekk.pw.pokemate.tasks.EvolvePokemon.run(EvolvePokemon.java:55) at java.util.ArrayList.forEach(Unknown Source) at dekk.pw.pokemate.tasks.TaskController.run(TaskController.java:52)

gsisso commented 8 years ago

thats because of the issue of buffer being null,what I did for now to resolve it is checking that "result" isnt null

SippieCup commented 8 years ago

This error is now handled gracefully and will hang the bot.