From 38dd6da96b3e537fb48345da680a99325336739e Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 2 Jun 2015 20:17:46 +0200 Subject: [PATCH] Embarrassing bugfix --- Site5/Pages/v5/Swarm/LocalOrganization.aspx.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Site5/Pages/v5/Swarm/LocalOrganization.aspx.cs b/Site5/Pages/v5/Swarm/LocalOrganization.aspx.cs index 2d88de03..0707d9ec 100644 --- a/Site5/Pages/v5/Swarm/LocalOrganization.aspx.cs +++ b/Site5/Pages/v5/Swarm/LocalOrganization.aspx.cs @@ -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) {