Fix an nPE

This commit is contained in:
Olof Larsson 2013-04-29 10:35:35 +02:00
parent 1d951fb5cf
commit cea9a85f2b
2 changed files with 1 additions and 2 deletions

View File

@ -99,7 +99,7 @@ public class Board extends Entity<Board> implements BoardInterface
{
if (ps == null) return null;
TerritoryAccess ta = this.getTerritoryAccessAt(ps);
return ta.getHostFaction(ps);
return ta.getHostFaction(this);
}
// SET

View File

@ -27,7 +27,6 @@ public abstract class XColls<C extends Coll<E>, E> extends Colls<C, E>
String universe = ((Coll<?>)o).getUniverse();
if (universe == null) return null;
return this.getForUniverse(universe);
}
if (SenderUtil.isNonplayer(o))