Skip to content

Commit e05d702

Browse files
fix lifetime event
1 parent 9b5be48 commit e05d702

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Database/Runner.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ public DateTime CreatedTime
2727
{
2828
get
2929
{
30-
return Lifecycle.FirstOrDefault(x => x.Status == RunnerStatus.Created)!.EventTimeUtc;
30+
var createdTime = Lifecycle.FirstOrDefault(x => x.Status == RunnerStatus.Created);
31+
if (createdTime == null)
32+
{
33+
return DateTime.MaxValue;
34+
}
35+
return createdTime.EventTimeUtc;
3136
}
3237
}
3338

0 commit comments

Comments
 (0)