summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java b/Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java
index 23fe142b2..83dd1a846 100644
--- a/Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java
+++ b/Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java
@@ -102,6 +102,13 @@ public class GroupManagerHandler implements IPermissionsHandler
{
return null;
}
- return holder.getWorldPermissions(base);
+ try
+ {
+ return holder.getWorldPermissions(base);
+ }
+ catch (NullPointerException ex)
+ {
+ return null;
+ }
}
}