diff --git a/AsbCloudInfrastructure/Services/SAUB/TelemetryService.cs b/AsbCloudInfrastructure/Services/SAUB/TelemetryService.cs index 811f9beb..4a62b225 100644 --- a/AsbCloudInfrastructure/Services/SAUB/TelemetryService.cs +++ b/AsbCloudInfrastructure/Services/SAUB/TelemetryService.cs @@ -95,7 +95,7 @@ namespace AsbCloudInfrastructure.Services.SAUB { var entity = GetTelemetryCache() .FirstOrDefault(t => t.Well?.Id == idWell); - if (entity.Well?.Timezone is not null && entity.TimeZone.Hours != entity.Well.Timezone.Hours) + if (entity?.Well?.Timezone is not null && entity.TimeZone.Hours != entity.Well.Timezone.Hours) { entity.TimeZone = entity.Well.Timezone; //TODO: выдаем предупреждение!