mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 09:05:01 +02:00
Prevent NPEs on new user creation.
This commit is contained in:
@@ -162,6 +162,9 @@ public class WorldDataHolder {
|
||||
}
|
||||
|
||||
// Search for a LastName match
|
||||
|
||||
if (nameToUUIDLookup.containsKey(currentName)) {
|
||||
|
||||
for (String uid : getUUIDLookup(currentName)) {
|
||||
|
||||
User usr = getUsers().get(uid);
|
||||
@@ -179,6 +182,7 @@ public class WorldDataHolder {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// No user account found so create a new one.
|
||||
|
Reference in New Issue
Block a user