Fix NPE in UserData on login

if no address is available
This commit is contained in:
Alexander Schepp 2012-10-21 23:17:08 +03:00
parent 99cefb2d74
commit 86124b2705

View File

@ -635,7 +635,10 @@ public abstract class UserData extends PlayerExtension implements IConf
public void setLastLogin(long time)
{
_setLastLogin(time);
if (base.getAddress() != null && base.getAddress().getAddress() != null)
{
_setLastLoginAddress(base.getAddress().getAddress().getHostAddress());
}
config.save();
}
private long lastLogout;