From 23e970bc60d1abf20d6e44d96c1858b6ce601578 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 26 Jan 2012 17:19:00 -0500 Subject: [PATCH] Fixed NPE that occurs when a player is offline when chests are cleared. --- src/com/massivecraft/factions/integration/LWCFeatures.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/integration/LWCFeatures.java b/src/com/massivecraft/factions/integration/LWCFeatures.java index 837b7094..9cacb807 100644 --- a/src/com/massivecraft/factions/integration/LWCFeatures.java +++ b/src/com/massivecraft/factions/integration/LWCFeatures.java @@ -49,7 +49,7 @@ public class LWCFeatures { if(lwc.findProtection(chests.get(x)) != null) { - if(!faction.getFPlayers().contains(FPlayers.i.get(lwc.findProtection(chests.get(x)).getBukkitOwner()))) + if(!faction.getFPlayers().contains(FPlayers.i.get(lwc.findProtection(chests.get(x)).getOwner()))) lwc.findProtection(chests.get(x)).remove(); } }