From 046fa4f8b6ab4307fa4db4edf9eceb471dac64b7 Mon Sep 17 00:00:00 2001 From: Mysticate Date: Sat, 29 Aug 2015 14:30:22 -0600 Subject: [PATCH] Fixed possible NPE --- .../game/arcade/game/games/evolution/Evolution.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/Evolution.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/Evolution.java index e346148c5..62978c22b 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/Evolution.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/Evolution.java @@ -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