1
0
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:
ElgarL
2014-06-20 08:51:41 +01:00
parent f336e54b67
commit d86d72eeb7

View File

@@ -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.