From e117c974004d86cdfaed6dcca32543869e14619e Mon Sep 17 00:00:00 2001 From: CWX Date: Mon, 13 Jan 2025 21:59:21 +0000 Subject: [PATCH] null check --- Core/Controllers/GameController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Controllers/GameController.cs b/Core/Controllers/GameController.cs index db7a86ec..1bc43d39 100644 --- a/Core/Controllers/GameController.cs +++ b/Core/Controllers/GameController.cs @@ -219,7 +219,7 @@ public class GameController public GameConfigResponse GetGameConfig(string sessionId) { var profile = _profileHelper.GetPmcProfile(sessionId); - var gameTime = profile?.Stats?.Eft?.OverallCounters?.Items.FirstOrDefault(c => + var gameTime = profile?.Stats?.Eft?.OverallCounters?.Items?.FirstOrDefault(c => c.Key.Contains("LifeTime") && c.Key.Contains("Pmc")).Value ?? 0D;