Skip to content

Commit 2a4a260

Browse files
Merge pull request #950 from erikdarlingdata/fix/correlated-lanes-null-guards
Add nullability guards to comparison overlay tasks
2 parents a88d73f + 6f38bbf commit 2a4a260

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lite/Controls/CorrelatedTimelineLanesControl.xaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,19 +182,19 @@ await Task.WhenAll(cpuTask, waitTask, blockingTask, deadlockTask, memoryTask, fi
182182
AddGhostLine(WaitStatsChart, refWaitTask.Result
183183
.Select(d => (d.CollectionTime.AddMinutes(utcOffset).Add(timeShift).ToOADate(), d.WaitTimeMsPerSecond)).ToList(), "#FFB74D");
184184

185-
if (refBlockingTask.IsCompletedSuccessfully)
185+
if (refBlockingTask.IsCompletedSuccessfully && refBlockingTask.Result != null)
186186
{
187187
var refBlocking = refBlockingTask.Result
188188
.Select(d => (d.Time.AddMinutes(utcOffset).Add(timeShift).ToOADate(), (double)d.Count)).ToList();
189189
if (refBlocking.Count > 0)
190190
AddGhostLine(BlockingChart, refBlocking, "#E57373");
191191
}
192192

193-
if (refMemoryTask.IsCompletedSuccessfully)
193+
if (refMemoryTask.IsCompletedSuccessfully && refMemoryTask.Result != null)
194194
AddGhostLine(MemoryChart, refMemoryTask.Result
195195
.Select(d => (d.CollectionTime.AddMinutes(utcOffset).Add(timeShift).ToOADate(), d.BufferPoolMb)).ToList(), "#CE93D8");
196196

197-
if (refIoTask.IsCompletedSuccessfully)
197+
if (refIoTask.IsCompletedSuccessfully && refIoTask.Result != null)
198198
{
199199
var refIo = refIoTask.Result
200200
.GroupBy(d => d.CollectionTime)

0 commit comments

Comments
 (0)