Note the possible NPE for further investigation.

This commit is contained in:
Olof Larsson 2013-08-08 09:28:39 +02:00
parent 32e060c2c3
commit 66cdb21215

View File

@ -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);