Fix an nPE
This commit is contained in:
parent
1d951fb5cf
commit
cea9a85f2b
@ -99,7 +99,7 @@ public class Board extends Entity<Board> implements BoardInterface
|
|||||||
{
|
{
|
||||||
if (ps == null) return null;
|
if (ps == null) return null;
|
||||||
TerritoryAccess ta = this.getTerritoryAccessAt(ps);
|
TerritoryAccess ta = this.getTerritoryAccessAt(ps);
|
||||||
return ta.getHostFaction(ps);
|
return ta.getHostFaction(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// SET
|
// SET
|
||||||
|
@ -27,7 +27,6 @@ public abstract class XColls<C extends Coll<E>, E> extends Colls<C, E>
|
|||||||
String universe = ((Coll<?>)o).getUniverse();
|
String universe = ((Coll<?>)o).getUniverse();
|
||||||
if (universe == null) return null;
|
if (universe == null) return null;
|
||||||
return this.getForUniverse(universe);
|
return this.getForUniverse(universe);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SenderUtil.isNonplayer(o))
|
if (SenderUtil.isNonplayer(o))
|
||||||
|
Loading…
Reference in New Issue
Block a user