Fix for an error in checkFullUserPermission caused by silly requests for

a null perm.
This commit is contained in:
ElgarL 2011-11-03 20:29:30 +00:00
parent e873ebd67d
commit 87ccd7bf46
2 changed files with 3 additions and 2 deletions

View file

@ -68,4 +68,5 @@ v 1.5:
- GM will now check to see if it's data files have been changed at each scheduled save.
If the files have been altered (on disc) it will reload, so long as the in-memory data hasn't changed.
If the files on Disc have changed AND there have been changes to it's in-memory data it will show a warning.
You then MUST issue a '/mansave force' to overwrite the disc files, or a '/manload' to overwrite the memory data.
You then MUST issue a '/mansave force' to overwrite the disc files, or a '/manload' to overwrite the memory data.
- Fix for an error in checkFullUserPermission caused by silly requests for a null perm.

View file

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