bugfix: allow null gate parameter.
This commit is contained in:
parent
acd96607d4
commit
790fd5bccd
@ -23,6 +23,10 @@ public class PermissionController {
|
|||||||
assert(sender != null);
|
assert(sender != null);
|
||||||
assert(permission != null);
|
assert(permission != null);
|
||||||
|
|
||||||
|
if (gate == null) {
|
||||||
|
return hasPermission(sender, permission);
|
||||||
|
}
|
||||||
|
|
||||||
final Location location = gate.getLocation();
|
final Location location = gate.getLocation();
|
||||||
final Location exit = gate.getExit();
|
final Location exit = gate.getExit();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user