瀏覽代碼

Fix GPS tracker initialisation bug

Kenric Nugteren 1 周之前
父節點
當前提交
f4c6c991d7
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      prs.stores/GPSTrackerLocationStore.cs

+ 2 - 1
prs.stores/GPSTrackerLocationStore.cs

@@ -28,7 +28,8 @@ namespace Comal.Stores
         {
             _cache = new ConcurrentDictionary<string, Guid>(
                 DbFactory.NewProvider(Logger.Main).Query(
-                    Filter<GPSTracker>.Where(x => x.DeviceID).IsNotEqualTo(Guid.Empty.ToString()),
+                    Filter<GPSTracker>.Where(x => x.DeviceID).IsNotEqualTo(Guid.Empty.ToString())
+                        .And(x => x.DeviceID).IsNotEqualTo(null),
                     Columns.None<GPSTracker>().Add(x => x.DeviceID).Add(x => x.ID)
                 ).Rows
                     .Select(r => new KeyValuePair<string, Guid>(