summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-23 19:13:05 +0200
committersnowleo <schneeleo@gmail.com>2011-07-23 19:13:05 +0200
commit7aea9e71e87b62ed22cc8c4ddba3cf7500b2ee7d (patch)
tree50934aa0d2346f5681a5c742723bf974f1077678
parentdc0ca350174d35bbf1da1c8d1a81cb24715a5c99 (diff)
downloadEssentials-7aea9e71e87b62ed22cc8c4ddba3cf7500b2ee7d.tar
Essentials-7aea9e71e87b62ed22cc8c4ddba3cf7500b2ee7d.tar.gz
Essentials-7aea9e71e87b62ed22cc8c4ddba3cf7500b2ee7d.tar.lz
Essentials-7aea9e71e87b62ed22cc8c4ddba3cf7500b2ee7d.tar.xz
Essentials-7aea9e71e87b62ed22cc8c4ddba3cf7500b2ee7d.zip
NPE check in PlayerInteract
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/SignPlayerListener.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignPlayerListener.java b/Essentials/src/com/earth2me/essentials/signs/SignPlayerListener.java
index 1df9e3640..a97c234fa 100644
--- a/Essentials/src/com/earth2me/essentials/signs/SignPlayerListener.java
+++ b/Essentials/src/com/earth2me/essentials/signs/SignPlayerListener.java
@@ -28,6 +28,10 @@ public class SignPlayerListener extends PlayerListener
}
final Block block = event.getClickedBlock();
+ if (block == null)
+ {
+ return;
+ }
final int mat = block.getTypeId();
if (mat == Material.SIGN_POST.getId() || mat == Material.WALL_SIGN.getId())
{