ignore groups with bad data in PermissionsBukkit

This commit is contained in:
Sleaker 2012-07-05 12:40:32 -07:00
parent 514742c519
commit 67b2af2ed5

View File

@ -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());
}