1
0
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:
ElgarL
2014-06-19 17:29:20 +01:00
parent e862e3c87b
commit 2e0a1dde85
2 changed files with 3 additions and 1 deletions

View File

@@ -110,6 +110,8 @@ public abstract class DataUnit {
if (!lastName.equals(this.lastName)) {
this.lastName = lastName;
dataSource.putUUIDLookup(lastName, uUID);
changed = true;
}

View File

@@ -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())