Embarrassing bugfix

This commit is contained in:
Rick Falkvinge
2015-06-02 20:17:46 +02:00
parent a8971c3dcd
commit 38dd6da96b
@@ -37,8 +37,8 @@ namespace Swarmops.Frontend.Pages.v5.Swarm
RegisterControl (IncludedControl.JsonParameters | IncludedControl.SwitchButton);
Geography displayGeography = CurrentUser.Geography;
if (CurrentAuthority.Position.Geography != CurrentUser.Geography)
if (CurrentAuthority.Position != null && CurrentAuthority.Position.Geography != CurrentUser.Geography)
{
if (CurrentAuthority.Position.Geography == null)
{