mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-18 16:25:20 +01:00
Fixing a couple of NPE
This commit is contained in:
parent
0fd21575e4
commit
18e6c778b9
@ -335,10 +335,10 @@ public class Faction extends Entity<Faction> implements EconomyParticipator
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOpen(boolean open)
|
public void setOpen(Boolean open)
|
||||||
{
|
{
|
||||||
// Clean input
|
// Clean input
|
||||||
boolean target = open;
|
Boolean target = open;
|
||||||
|
|
||||||
// Detect Nochange
|
// Detect Nochange
|
||||||
if (MUtil.equals(this.open, target)) return;
|
if (MUtil.equals(this.open, target)) return;
|
||||||
@ -809,10 +809,10 @@ public class Faction extends Entity<Faction> implements EconomyParticipator
|
|||||||
// FOREIGN KEY: UPLAYER
|
// FOREIGN KEY: UPLAYER
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
|
||||||
protected transient List<UPlayer> uplayers = null;
|
protected transient List<UPlayer> uplayers = new ArrayList<UPlayer>();
|
||||||
public void reindexUPlayers()
|
public void reindexUPlayers()
|
||||||
{
|
{
|
||||||
this.uplayers = new ArrayList<UPlayer>();
|
this.uplayers.clear();
|
||||||
|
|
||||||
String factionId = this.getId();
|
String factionId = this.getId();
|
||||||
if (factionId == null) return;
|
if (factionId == null) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user