From 18e6c778b95d34e46ef59207b06c40d2cc21901c Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 25 Apr 2013 11:00:17 +0200 Subject: [PATCH] Fixing a couple of NPE --- src/com/massivecraft/factions/entity/Faction.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/massivecraft/factions/entity/Faction.java b/src/com/massivecraft/factions/entity/Faction.java index 5117fe2e..8e9d5b69 100644 --- a/src/com/massivecraft/factions/entity/Faction.java +++ b/src/com/massivecraft/factions/entity/Faction.java @@ -335,10 +335,10 @@ public class Faction extends Entity implements EconomyParticipator return ret; } - public void setOpen(boolean open) + public void setOpen(Boolean open) { // Clean input - boolean target = open; + Boolean target = open; // Detect Nochange if (MUtil.equals(this.open, target)) return; @@ -809,10 +809,10 @@ public class Faction extends Entity implements EconomyParticipator // FOREIGN KEY: UPLAYER // -------------------------------------------- // - protected transient List uplayers = null; + protected transient List uplayers = new ArrayList(); public void reindexUPlayers() { - this.uplayers = new ArrayList(); + this.uplayers.clear(); String factionId = this.getId(); if (factionId == null) return;