OSDN Git Service

quick fix for Translocator repair crash
authormelchior <melchior@users.osdn.me>
Tue, 23 Jun 2020 23:20:29 +0000 (19:20 -0400)
committermelchior <melchior@users.osdn.me>
Tue, 23 Jun 2020 23:20:29 +0000 (19:20 -0400)
Automap/Designators/DefaultDesignators.cs

index 7637cb2..b4f6d30 100644 (file)
@@ -183,7 +183,7 @@ namespace Automap
                                                                Location = posn.Copy(),
                                                                Notes = textTarget.ToString(),
                                                                Timestamp = DateTime.UtcNow,
-                                                               Destination = new BlockPosJson(te.TargetLocation)
+                                                               Destination = te.TargetLocation != null ? new BlockPosJson(te.TargetLocation) : null//FIXME: Delayed rescan
                                                        }
                                                        );