Fixed NULL offline player names breaking UUID migration.
This commit is contained in:
parent
b0b1ad592b
commit
2c75e4258f
|
|
@ -54,7 +54,7 @@ class UUIDFetcher {
|
|||
String name = names.get(i);
|
||||
for(OfflinePlayer player : players)
|
||||
{
|
||||
if(player.getName().equalsIgnoreCase(name))
|
||||
if(player.getName() != null && player.getName().equalsIgnoreCase(name))
|
||||
{
|
||||
if(!player.getName().equals(name))
|
||||
{
|
||||
|
|
@ -73,7 +73,7 @@ class UUIDFetcher {
|
|||
String name = names.get(i);
|
||||
for(OfflinePlayer player : players)
|
||||
{
|
||||
if(player.getName().equalsIgnoreCase(name))
|
||||
if(player.getName() != null && player.getName().equalsIgnoreCase(name))
|
||||
{
|
||||
UUID uuid = player.getUniqueId();
|
||||
if(uuid != null)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user