Fix for NPE on player respawn when faction home isn't set

This commit is contained in:
Brettflan 2011-06-30 09:51:14 -05:00
parent 80bead2ad6
commit dc96767dff

View File

@ -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;
}