bugfix: allow null gate parameter.
This commit is contained in:
		| @@ -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(); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tobias Ottenweller
					Tobias Ottenweller