From 6ef22b432b330c35bef8a33cb530d672fd56c66d Mon Sep 17 00:00:00 2001 From: Joimer Date: Sun, 22 Feb 2015 13:20:40 +0100 Subject: [PATCH] Fix crash in team validator This commit fixs a specific case crash on team validator that will crash all the validation process. --- team-validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/team-validator.js b/team-validator.js index b65d6f8682..537baf2566 100644 --- a/team-validator.js +++ b/team-validator.js @@ -731,7 +731,7 @@ Validator = (function () { } else if (template.prevo) { template = tools.getTemplate(template.prevo); if (template.gen > Math.max(2, tools.gen)) template = null; - if (!template.abilities['H']) isHidden = false; + if (template && !template.abilities['H']) isHidden = false; } else if (template.baseSpecies !== template.species && template.baseSpecies !== 'Kyurem' && template.baseSpecies !== 'Pikachu') { template = tools.getTemplate(template.baseSpecies); } else {