Fixed possible NPE
This commit is contained in:
parent
736d88c82f
commit
046fa4f8b6
@ -682,8 +682,15 @@ public class Evolution extends SoloGame
|
|||||||
if (!IsPlaying(player))
|
if (!IsPlaying(player))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
return _tokens.get(player.getName()).Level;
|
return _tokens.get(player.getName()).Level;
|
||||||
}
|
}
|
||||||
|
catch (NullPointerException ex)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onSlot(PlayerItemHeldEvent event)
|
public void onSlot(PlayerItemHeldEvent event)
|
||||||
|
Loading…
Reference in New Issue
Block a user