From dc96767dff8560db5fef494e70c37c67228de720 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Thu, 30 Jun 2011 09:51:14 -0500 Subject: [PATCH] Fix for NPE on player respawn when faction home isn't set --- src/org/mcteam/factions/Faction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/mcteam/factions/Faction.java b/src/org/mcteam/factions/Faction.java index 23e034cb..d6333fdd 100644 --- a/src/org/mcteam/factions/Faction.java +++ b/src/org/mcteam/factions/Faction.java @@ -111,7 +111,7 @@ public class Faction { } public void confirmValidHome() { - if (!Conf.homesMustBeInClaimedTerritory || Board.getFactionAt(new FLocation(this.home)) == this) { + if (!Conf.homesMustBeInClaimedTerritory || this.home == null || Board.getFactionAt(new FLocation(this.home)) == this) { return; }