Little more info on a debug message

This commit is contained in:
libraryaddict 2017-07-23 23:50:25 +12:00
parent 288379c06a
commit 926aea53f6

View File

@ -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);