mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-09 22:00:40 +02:00
Ignore null entries in Permission#children map on Bukkit/Nukkit (#2235)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user