From 66cdb21215029b9835a8845f6256ebc18a39f090 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 8 Aug 2013 09:28:39 +0200 Subject: [PATCH] Note the possible NPE for further investigation. --- .../massivecraft/factions/listeners/FactionsListenerMain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/listeners/FactionsListenerMain.java b/src/com/massivecraft/factions/listeners/FactionsListenerMain.java index a5cc154e..1671c021 100644 --- a/src/com/massivecraft/factions/listeners/FactionsListenerMain.java +++ b/src/com/massivecraft/factions/listeners/FactionsListenerMain.java @@ -476,7 +476,7 @@ public class FactionsListenerMain implements Listener // ... if there is a faction at the players location ... PS ps = PS.valueOf(player).getChunk(true); Faction factionAtPs = BoardColls.get().getFactionAt(ps); - if (factionAtPs.isNone()) return; + if (factionAtPs.isNone()) return; // TODO: An NPE can arise here? Why? // ... the command may be denied in the territory of this relation type ... Rel rel = factionAtPs.getRelationTo(uplayer);