From a942fd08f50a9f02590262d40a0de289c8df2372 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 16 Jan 2011 23:15:30 -0800 Subject: [PATCH] Fixed NullPointerException related to the player item event. --- src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java b/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java index c19d52b1..379eec77 100644 --- a/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java +++ b/src/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java @@ -131,7 +131,7 @@ public void onPlayerItem(PlayerItemEvent event) { } } - if (plugin.blacklist != null) { + if (block != null && plugin.blacklist != null) { if (!plugin.blacklist.check( new ItemUseBlacklistEvent(plugin.wrapPlayer(player), toVector(block), block.getTypeId()), false, false)) {