From 432a8f337b36cc6be2579f7db7e9e21ff773b352 Mon Sep 17 00:00:00 2001 From: Chomp Date: Thu, 16 Jan 2025 12:30:56 +0000 Subject: [PATCH] Fixed nullref error --- 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 3731442d..3ea2616b 100644 --- a/Core/Controllers/GameController.cs +++ b/Core/Controllers/GameController.cs @@ -225,7 +225,7 @@ public class GameController var profile = _profileHelper.GetPmcProfile(sessionId); var gameTime = profile?.Stats?.Eft?.OverallCounters?.Items?.FirstOrDefault(c => c.Key.Contains("LifeTime") && - c.Key.Contains("Pmc")).Value ?? 0D; + c.Key.Contains("Pmc"))?.Value ?? 0D; var config = new GameConfigResponse {