From dd8bb2d3a9abf9fc82c99d79eb91be1a4e4e9a6c Mon Sep 17 00:00:00 2001 From: CWX Date: Wed, 12 Feb 2025 19:02:30 +0000 Subject: [PATCH] fix questHandover breaking with null check --- Libraries/Core/Controllers/QuestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Core/Controllers/QuestController.cs b/Libraries/Core/Controllers/QuestController.cs index 88e9e937..bf9da9f7 100644 --- a/Libraries/Core/Controllers/QuestController.cs +++ b/Libraries/Core/Controllers/QuestController.cs @@ -319,7 +319,7 @@ public class QuestController( // Remove the item // If the removed item has a numeric `location` property, re-calculate all the child // element `location` properties of the parent so they are sequential, while retaining order - if (removedItem.Location.GetType() == typeof(int)) + if (removedItem.Location?.GetType() == typeof(int)) { var childItems = _itemHelper.FindAndReturnChildrenAsItems( pmcData.Inventory.Items,