From 2761b92e722ab6ae37380d6dceae29fc2896cb94 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 22 Jan 2017 13:18:09 +0100 Subject: [PATCH] Fixed a nullref --- Logic/Swarm/Position.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/Swarm/Position.cs b/Logic/Swarm/Position.cs index d2e134bb..b6350b06 100644 --- a/Logic/Swarm/Position.cs +++ b/Logic/Swarm/Position.cs @@ -154,7 +154,7 @@ namespace Swarmops.Logic.Swarm // This fakes a geography base. Used for locking a position to a specific geo. Not good architecture as it // creates a different meaning than the database one. - base.GeographyId = geography.Identity; + base.GeographyId = (geography==null? 0: geography.Identity); }