From 83907842ff5b38565d67ee53c59c16a73ee4b315 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 27 Nov 2016 13:33:00 -0800 Subject: [PATCH] Fix met suggestion for unsupported games --- PKHeX/Legality/Analysis.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PKHeX/Legality/Analysis.cs b/PKHeX/Legality/Analysis.cs index b65e9c37b..705570697 100644 --- a/PKHeX/Legality/Analysis.cs +++ b/PKHeX/Legality/Analysis.cs @@ -235,6 +235,9 @@ public int[] getSuggestedMoves(bool tm, bool tutor, bool reminder) public EncounterStatic getSuggestedMetInfo() { + if (pkm == null) + return null; + if (pkm.WasEgg) return new EncounterStatic {