Null check in MessageManager

This commit is contained in:
libraryaddict 2015-02-10 04:17:38 +13:00
parent 29f3241098
commit c2c63f4fc0

View File

@ -128,7 +128,7 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
{
PunishClient client = _punish.GetClient(from.getName());
if (client.IsMuted())
if (client != null && client.IsMuted())
{
Punishment punishment = client.GetPunishment(PunishmentSentence.Mute);