From 926aea53f65c22f6c6410d3b0a7877b7a30daaca Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 23 Jul 2017 23:50:25 +1200 Subject: [PATCH] Little more info on a debug message --- src/me/libraryaddict/disguise/utilities/ReflectionManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java index 9c76acd6..46df54d5 100644 --- a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java +++ b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java @@ -865,7 +865,8 @@ public class ReflectionManager { throw new IllegalArgumentException("Unable to find Serializer for " + value + ( value instanceof Optional && ((Optional) value).isPresent() ? " (" + ((Optional) value).get().getClass().getName() + ")" : - "") + "! Are you running the latest version of ProtocolLib?"); + value instanceof Optional || value == null ? "" : value.getClass() + .getName()) + "! Are you running " + "the latest " + "version of " + "ProtocolLib?"); } WrappedDataWatcherObject watcherObject = new WrappedDataWatcherObject(id, serializer);