From f5e1b7868d18c7cceded12ecd0c10f9d77cb0d46 Mon Sep 17 00:00:00 2001 From: panthernet Date: Fri, 29 Jul 2016 02:18:54 +0300 Subject: [PATCH] + Fixed snipe logic crash --- PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs b/PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs index 322d89634..1d88088c8 100644 --- a/PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs +++ b/PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs @@ -69,7 +69,7 @@ public static async Task Execute(ISession session) q => Enum.Parse(typeof(PokemonId), q) as PokemonId? ?? PokemonId.Missingno).Select(q => (int)q); - var locationsToSnipe = scanResult.pokemon.Where(q => + var locationsToSnipe = scanResult.pokemon == null ? new List() : scanResult.pokemon.Where(q => pokemonIds.Contains(q.pokemonId) && !locsVisited.Contains(q) && q.expiration_time < currentTimestamp