From b5f4055269c348c0dab384aedb3b42f143c3f24b Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 17 Feb 2016 18:40:24 +1100 Subject: [PATCH] Fix command stack trace on unitialized arcade games. --- .../src/nautilus/game/arcade/game/games/event/EventModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/event/EventModule.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/event/EventModule.java index 38dd7208e..31508193d 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/event/EventModule.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/event/EventModule.java @@ -211,7 +211,7 @@ public class EventModule extends MiniPlugin @EventHandler(priority = EventPriority.LOWEST) public void commandHandler(PlayerCommandPreprocessEvent event) { - if (!Manager.GetGame().InProgress()) + if (Manager.GetGame() == null || !Manager.GetGame().InProgress()) return; if (!event.getMessage().toLowerCase().startsWith("/e "))