From 67b2af2ed5b5261e088d550868c8a6cc7c2d1743 Mon Sep 17 00:00:00 2001 From: Sleaker Date: Thu, 5 Jul 2012 12:40:32 -0700 Subject: [PATCH] ignore groups with bad data in PermissionsBukkit --- .../permission/plugins/Permission_PermissionsBukkit.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net/milkbowl/vault/permission/plugins/Permission_PermissionsBukkit.java b/src/net/milkbowl/vault/permission/plugins/Permission_PermissionsBukkit.java index bb8acec..4e33879 100644 --- a/src/net/milkbowl/vault/permission/plugins/Permission_PermissionsBukkit.java +++ b/src/net/milkbowl/vault/permission/plugins/Permission_PermissionsBukkit.java @@ -234,6 +234,10 @@ public class Permission_PermissionsBukkit extends Permission { public String[] getGroups() { List groupNames = new ArrayList(); for (Group group : perms.getAllGroups()) { + //Ignore groups with bad data. + if (group == null || group.getName() == null) { + continue; + } groupNames.add(group.getName()); }