diff --git a/Hearthstone Deck Tracker/HsLogReader.cs b/Hearthstone Deck Tracker/HsLogReader.cs index c3139e1969..5372949bb6 100644 --- a/Hearthstone Deck Tracker/HsLogReader.cs +++ b/Hearthstone Deck Tracker/HsLogReader.cs @@ -429,7 +429,9 @@ private void Analyze(string log) var actionStartingEntityId = int.Parse(match.Groups["id"].Value); if (string.IsNullOrEmpty(actionStartingCardId)) { - actionStartingCardId = Game.Entities[actionStartingEntityId].CardId; + Entity tmpEntity; + if(Game.Entities.TryGetValue(actionStartingEntityId, out tmpEntity)) + actionStartingCardId = tmpEntity.CardId; } if (!string.IsNullOrEmpty(actionStartingCardId)) {