mirror of
https://github.com/essentials/Essentials.git
synced 2025-07-31 03:40:52 +02:00
Fix NPE when adding name to UUID key before the name has been set.
This commit is contained in:
@@ -110,6 +110,8 @@ public abstract class DataUnit {
|
||||
if (!lastName.equals(this.lastName)) {
|
||||
|
||||
this.lastName = lastName;
|
||||
dataSource.putUUIDLookup(lastName, uUID);
|
||||
|
||||
changed = true;
|
||||
|
||||
}
|
||||
|
@@ -208,7 +208,7 @@ public class WorldDataHolder {
|
||||
getUsers().put(theUser.getUUID().toLowerCase(), theUser);
|
||||
|
||||
// Store for name to UUID lookups.
|
||||
putUUIDLookup(theUser.getLastName(), theUser.getUUID().toLowerCase());
|
||||
//putUUIDLookup(theUser.getLastName(), theUser.getUUID().toLowerCase());
|
||||
|
||||
setUsersChanged(true);
|
||||
if (GroupManager.isLoaded())
|
||||
|
Reference in New Issue
Block a user