Noted a possible npe

This commit is contained in:
Olof Larsson 2012-01-28 17:02:18 +01:00
parent 92bddb0f9a
commit dfb36a9e43

View File

@ -264,7 +264,7 @@ public class FactionsPlayerListener extends PlayerListener
public void onPlayerRespawn(PlayerRespawnEvent event) public void onPlayerRespawn(PlayerRespawnEvent event)
{ {
FPlayer me = FPlayers.i.get(event.getPlayer()); FPlayer me = FPlayers.i.get(event.getPlayer());
Location home = me.getFaction().getHome(); Location home = me.getFaction().getHome(); // TODO: WARNING FOR NPE HERE THE ORIO FOR RESPAWN SHOULD BE ASSIGNABLE FROM CONFIG.
if if
( (
Conf.homesEnabled Conf.homesEnabled