Fixed a nullref

This commit is contained in:
Rick Falkvinge
2017-01-22 13:18:09 +01:00
parent 625bb52ee4
commit 2761b92e72
+1 -1
View File
@@ -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);
}