From c7e4d5b00bf84c9acf350da65801a94f18bec72b Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 29 Jul 2017 22:36:25 +0100 Subject: [PATCH] Fix NPE --- .../mineplex/core/gadget/gadgets/morph/moba/MorphBardolf.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/morph/moba/MorphBardolf.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/morph/moba/MorphBardolf.java index 9e6b58d68..ceb0af6e0 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/morph/moba/MorphBardolf.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/morph/moba/MorphBardolf.java @@ -213,7 +213,7 @@ public class MorphBardolf extends MorphGadget Player player = event.getPlayer(); Item item = _fetch.get(player); - if (item.equals(event.getItem())) + if (item != null && item.equals(event.getItem())) { event.setCancelled(false); _fetch.remove(player);