From 1d539ec6d69add9f207e9adc8a5e1f54357a8a58 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Sat, 14 Dec 2024 19:08:55 +0100 Subject: [PATCH] Add null check --- Fika.Core/Coop/ClientClasses/CoopClientInventoryController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fika.Core/Coop/ClientClasses/CoopClientInventoryController.cs b/Fika.Core/Coop/ClientClasses/CoopClientInventoryController.cs index 820480e1..d2c7a663 100644 --- a/Fika.Core/Coop/ClientClasses/CoopClientInventoryController.cs +++ b/Fika.Core/Coop/ClientClasses/CoopClientInventoryController.cs @@ -253,7 +253,7 @@ private void HandleFinalResult(IResult result) InventoryController.logger.LogError($"{InventoryController.ID} - Operation critical failure - status mismatch: {Operation.Id} server status: {serverStatus} client status: {localStatus} - {Operation}"); } } - Callback(OperationResult); + Callback?.Invoke(OperationResult); } }