Fixed possible NPE

This commit is contained in:
Mysticate 2015-08-29 14:30:22 -06:00
parent 736d88c82f
commit 046fa4f8b6
1 changed files with 8 additions and 1 deletions

View File

@ -682,7 +682,14 @@ public class Evolution extends SoloGame
if (!IsPlaying(player))
return 0;
return _tokens.get(player.getName()).Level;
try
{
return _tokens.get(player.getName()).Level;
}
catch (NullPointerException ex)
{
return 0;
}
}
@EventHandler