diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-23 19:13:05 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-23 19:13:05 +0200 |
commit | 7aea9e71e87b62ed22cc8c4ddba3cf7500b2ee7d (patch) | |
tree | 50934aa0d2346f5681a5c742723bf974f1077678 | |
parent | dc0ca350174d35bbf1da1c8d1a81cb24715a5c99 (diff) | |
download | Essentials-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.java | 4 |
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()) { |