diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-11-03 20:29:30 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-11-03 20:29:30 +0000 |
commit | 87ccd7bf46ad4b8131591230d343552accf488ba (patch) | |
tree | 81661845dad2377ea23a7e54864f68359c66dec2 /EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions | |
parent | e873ebd67d3d1379b8a0a8cf18d7b2db9d9320f3 (diff) | |
download | Essentials-87ccd7bf46ad4b8131591230d343552accf488ba.tar Essentials-87ccd7bf46ad4b8131591230d343552accf488ba.tar.gz Essentials-87ccd7bf46ad4b8131591230d343552accf488ba.tar.lz Essentials-87ccd7bf46ad4b8131591230d343552accf488ba.tar.xz Essentials-87ccd7bf46ad4b8131591230d343552accf488ba.zip |
Fix for an error in checkFullUserPermission caused by silly requests for
a null perm.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java index e7ece0575..3546c757e 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java @@ -677,7 +677,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface { result.askedPermission = targetPermission; result.resultType = PermissionCheckResult.Type.NOTFOUND; - if (user == null || targetPermission == null) { + if (user == null || targetPermission == null || targetPermission.isEmpty()) { return result; } |