diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-04 21:33:02 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-04 21:33:09 +0200 |
commit | 65a78a6ea959d897e812ff78d9a6161f18f5c2cd (patch) | |
tree | 405d63217c1c477ba6463b6a040c6407019ee647 | |
parent | 9718e654acf7082413199fd60eea9e62d4a1eb8c (diff) | |
download | Essentials-65a78a6ea959d897e812ff78d9a6161f18f5c2cd.tar Essentials-65a78a6ea959d897e812ff78d9a6161f18f5c2cd.tar.gz Essentials-65a78a6ea959d897e812ff78d9a6161f18f5c2cd.tar.lz Essentials-65a78a6ea959d897e812ff78d9a6161f18f5c2cd.tar.xz Essentials-65a78a6ea959d897e812ff78d9a6161f18f5c2cd.zip |
Null check for probably corrupted worlds
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java index 026fb0557..b9d224cec 100644 --- a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java +++ b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java @@ -223,7 +223,7 @@ public class EssentialsSign if (signblock.getType() == Material.WALL_SIGN) { final org.bukkit.material.Sign signMat = (org.bukkit.material.Sign)signblock.getState().getData(); - if (signMat.getFacing() == blockFace && isValidSign(new BlockSign(signblock))) + if (signMat != null && signMat.getFacing() == blockFace && isValidSign(new BlockSign(signblock))) { return true; } |