From db2a8e18a317772f01e34dfbb04bbf98abb2cb08 Mon Sep 17 00:00:00 2001 From: Pepich Date: Wed, 1 Mar 2017 16:30:35 +0100 Subject: [PATCH] Fixed NPE --- src/com/redstoner/modules/chatgroups/Chatgroups.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/chatgroups/Chatgroups.java b/src/com/redstoner/modules/chatgroups/Chatgroups.java index 701a7e0..d90e826 100644 --- a/src/com/redstoner/modules/chatgroups/Chatgroups.java +++ b/src/com/redstoner/modules/chatgroups/Chatgroups.java @@ -26,7 +26,7 @@ import com.redstoner.modules.Module; * * @author Pepich */ @AutoRegisterListener -@Version(major = 1, minor = 2, revision = 2, compatible = 1) +@Version(major = 1, minor = 2, revision = 3, compatible = 1) public class Chatgroups implements Module, Listener { private static final char defaultKey = ':'; @@ -352,7 +352,7 @@ public class Chatgroups implements Module, Listener return false; } }); - if (!getGroup(Bukkit.getConsoleSender()).equals(group)) + if (getGroup(Bukkit.getConsoleSender()) == null || !getGroup(Bukkit.getConsoleSender()).equals(group)) { Utils.log(name + " in " + group + ": " + message + " ยง8(hidden)"); }