mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 03:53:41 +00:00
Fix NPE in UserData on login
if no address is available
This commit is contained in:
parent
99cefb2d74
commit
86124b2705
1 changed files with 4 additions and 1 deletions
|
@ -635,7 +635,10 @@ public abstract class UserData extends PlayerExtension implements IConf
|
||||||
public void setLastLogin(long time)
|
public void setLastLogin(long time)
|
||||||
{
|
{
|
||||||
_setLastLogin(time);
|
_setLastLogin(time);
|
||||||
_setLastLoginAddress(base.getAddress().getAddress().getHostAddress());
|
if (base.getAddress() != null && base.getAddress().getAddress() != null)
|
||||||
|
{
|
||||||
|
_setLastLoginAddress(base.getAddress().getAddress().getHostAddress());
|
||||||
|
}
|
||||||
config.save();
|
config.save();
|
||||||
}
|
}
|
||||||
private long lastLogout;
|
private long lastLogout;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue