From dd128244023ebe428817657c4295413100266009 Mon Sep 17 00:00:00 2001 From: AlexTheCoder Date: Fri, 7 Jul 2017 07:13:31 -0400 Subject: [PATCH] Fix NPE in LootModule --- .../src/mineplex/gemhunters/loot/LootModule.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/loot/LootModule.java b/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/loot/LootModule.java index 9aa42e3ac..07e0afb7c 100644 --- a/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/loot/LootModule.java +++ b/Plugins/mineplex-game-gemhunters/src/mineplex/gemhunters/loot/LootModule.java @@ -672,6 +672,10 @@ public class LootModule extends MiniPlugin { for (LootItemReward reward : _itemRewards) { + if (reward.getPlayer() == null) + { + continue; + } if (reward.getPlayer().equals(event.getEntity())) { reward.death(event);