0

Fixed NPE

This commit is contained in:
Pepich 2017-03-01 16:30:35 +01:00
parent fc98fd6a01
commit db2a8e18a3

View File

@ -26,7 +26,7 @@ import com.redstoner.modules.Module;
* *
* @author Pepich */ * @author Pepich */
@AutoRegisterListener @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 public class Chatgroups implements Module, Listener
{ {
private static final char defaultKey = ':'; private static final char defaultKey = ':';
@ -352,7 +352,7 @@ public class Chatgroups implements Module, Listener
return false; 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)"); Utils.log(name + " in " + group + ": " + message + " §8(hidden)");
} }