From 19fb08e7ff94ee52f2f2b96f42091d912e0d27f5 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 29 Apr 2022 01:48:39 -0400 Subject: [PATCH] fix: Add nullcheck in TradeLogRow ctr --- src/client/spark/Risk/TradeLogRow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/Risk/TradeLogRow.cs b/src/client/spark/Risk/TradeLogRow.cs index 4664b1ef8..32e5699aa 100644 --- a/src/client/spark/Risk/TradeLogRow.cs +++ b/src/client/spark/Risk/TradeLogRow.cs @@ -27,7 +27,7 @@ namespace mbts { theo = price; account = m_fill.AccountName; is_day_trade = true; - time_entered = m_fill.Timestamp.ToDateTime(); + time_entered = m_fill.Timestamp?.ToDateTime() ?? DateTime.MinValue; security_expiration = new SecurityExpiration(sec.Exchange, security_type, symbol, expiration.HasValue ? expiration.Value : DateTime.MinValue);