From 0f45734f8510e0d3372622e6de89d582f03c08a2 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 25 Jul 2017 10:41:07 +1200 Subject: [PATCH] Forgot to do another null check --- src/me/libraryaddict/disguise/utilities/ReflectionManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java index 93aa6ab9..29efb512 100644 --- a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java +++ b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java @@ -889,6 +889,9 @@ public class ReflectionManager { public static WrappedWatchableObject createWatchable(int index, Object obj) { Object watcherItem = createDataWatcherItem(index, obj); + if (watcherItem == null) + return null; + return new WrappedWatchableObject(watcherItem); }