Fix NPE
This commit is contained in:
parent
f198a2f66b
commit
c7e4d5b00b
@ -213,7 +213,7 @@ public class MorphBardolf extends MorphGadget
|
|||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
Item item = _fetch.get(player);
|
Item item = _fetch.get(player);
|
||||||
|
|
||||||
if (item.equals(event.getItem()))
|
if (item != null && item.equals(event.getItem()))
|
||||||
{
|
{
|
||||||
event.setCancelled(false);
|
event.setCancelled(false);
|
||||||
_fetch.remove(player);
|
_fetch.remove(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user