@@ -1285,6 +1285,10 @@ namespace IMCS.CCS.Service.Impl
//缓存取PLC tagvalue 值
List<CcsTagValue> tagValues = new List<CcsTagValue>();
+ if(device == null)
+ {
+ continue;
+ }
string tag_value_redis_key = imcs_redis_key + device.Ip + ":" + device.ProtocolType;
var tagData = await _redisService.Database.StringGetAsync(tag_value_redis_key);
if (tagData.IsNullOrEmpty)