Fix null check in Username->UUID ignore list converter (#3225)
Didn't test with a username that didn't exist and didn't notice this. Null check(s) are now in their proper place. Fixes #3223.
This commit is contained in:
parent
e9d29f789f
commit
dd5fe117b5
|
@ -65,9 +65,9 @@ public class EssentialsUpgrade {
|
|||
if (name == null) {
|
||||
continue;
|
||||
}
|
||||
OfflinePlayer user = ((OfflinePlayer) ess.getOfflineUser(name).getBase());
|
||||
if (user != null) {
|
||||
migratedIgnores.add(user.getUniqueId().toString());
|
||||
User user = ess.getOfflineUser(name);
|
||||
if (user != null && user.getBase() != null) {
|
||||
migratedIgnores.add(user.getBase().getUniqueId().toString());
|
||||
}
|
||||
}
|
||||
config.removeProperty("ignore");
|
||||
|
|
Loading…
Reference in New Issue