RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

Pokestop list can't be empty.

Open Rommel-holmes opened this issue 10 years ago • 1 comments

Right now we don't check pokestop is empty or not. so that by doing lambda, it will throw exception

System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.First[TSource](IEnumerable1 source) at PokemonGo.RocketAPI.Window.RouteOptimizer.FindNN(IEnumerable1 pokeStops, Double cLatitude, Double cLongitude) in C:\Users\Rommel\Desktop\Pokemon-Go-Rocket-API-master\PokemonGo\RocketAPI\Window\RouteOptimizer.cs:line 131

Rommel-holmes avatar Jul 31 '16 07:07 Rommel-holmes

thanks for the heads up, will fix that in the next build

brianzhouzc avatar Jul 31 '16 07:07 brianzhouzc