mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-01-16 21:21:42 +01:00
ignore groups with bad data in PermissionsBukkit
This commit is contained in:
parent
514742c519
commit
67b2af2ed5
@ -234,6 +234,10 @@ public class Permission_PermissionsBukkit extends Permission {
|
||||
public String[] getGroups() {
|
||||
List<String> groupNames = new ArrayList<String>();
|
||||
for (Group group : perms.getAllGroups()) {
|
||||
//Ignore groups with bad data.
|
||||
if (group == null || group.getName() == null) {
|
||||
continue;
|
||||
}
|
||||
groupNames.add(group.getName());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user