bugfix: allow null gate parameter.

This commit is contained in:
Tobias Ottenweller 2017-01-01 10:52:13 +01:00
parent acd96607d4
commit 790fd5bccd

View File

@ -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();