diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java index 8f948bc3c..d89ffbed7 100644 --- a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java +++ b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java @@ -19,7 +19,6 @@ public class EssentialsSign { private static final Set<Material> EMPTY_SET = new HashSet<Material>(); protected static final BigDecimal MINTRANSACTION = new BigDecimal("0.01"); - protected transient final String signName; public EssentialsSign(final String signName) @@ -232,10 +231,17 @@ public class EssentialsSign final Block signblock = block.getRelative(blockFace); if (signblock.getType() == Material.WALL_SIGN) { - final org.bukkit.material.Sign signMat = (org.bukkit.material.Sign)signblock.getState().getData(); - if (signMat != null && signMat.getFacing() == blockFace && isValidSign(new BlockSign(signblock))) + try { - return true; + final org.bukkit.material.Sign signMat = (org.bukkit.material.Sign)signblock.getState().getData(); + if (signMat != null && signMat.getFacing() == blockFace && isValidSign(new BlockSign(signblock))) + { + return true; + } + } + catch (NullPointerException ex) + { + // Sometimes signs enter a state of being semi broken, having no text or state data, usually while burning. } } } |