mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-04 07:28:13 +01:00
Ignore null entries in Permission#children map on Bukkit/Nukkit (#2235)
This commit is contained in:
parent
b17da055af
commit
ad6a11819d
@ -176,6 +176,10 @@ public final class LuckPermsPermissionMap extends ForwardingMap<String, Permissi
|
||||
// iterate through the current known children.
|
||||
// the first time this method is called for a given permission, the children map will contain only the permission itself.
|
||||
for (Map.Entry<String, Boolean> e : children.entrySet()) {
|
||||
if (e == null || e.getKey() == null || e.getValue() == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (accumulator.containsKey(e.getKey())) {
|
||||
continue; // Prevent infinite loops
|
||||
}
|
||||
|
@ -176,6 +176,10 @@ public final class LuckPermsPermissionMap extends ForwardingMap<String, Permissi
|
||||
// iterate through the current known children.
|
||||
// the first time this method is called for a given permission, the children map will contain only the permission itself.
|
||||
for (Map.Entry<String, Boolean> e : children.entrySet()) {
|
||||
if (e == null || e.getKey() == null || e.getValue() == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (accumulator.containsKey(e.getKey())) {
|
||||
continue; // Prevent infinite loops
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user