From 0afcef09b58881ae4d8ad38ca6c6ace553570ba0 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 2 Jun 2014 03:23:02 +1200 Subject: [PATCH] Check if custom name is null before assuming it is --- .../disguise/disguisetypes/watchers/LivingWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java index 16b354c6..a2534255 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java @@ -149,7 +149,7 @@ public class LivingWatcher extends FlagWatcher { } public void setCustomName(String name) { - if (name.length() > 64) + if (name != null && name.length() > 64) name = name.substring(0, 64); setValue(10, name); sendData(10);