Consider these statements in C#:
foreach (var sample in channel.Data)
{
if (sample.TimeStamp < placeholderMinLimit) continue;
}
This code returned on execution a NullReferenceException and review within the VS2019 IDE shows that the variable "sample" has value null. Meanwhile, "channel.Data" is not null, and has many thousand data points.
So, the question is, how is it possible for "sample" to be set to a value of null?