From 6f3244362c0e02f5cf00697fc9184c3f4c22a9fe Mon Sep 17 00:00:00 2001 From: Archangel Date: Thu, 29 May 2025 19:01:18 +0200 Subject: [PATCH] Make sure value is not null --- Libraries/SPTarkov.Server.Core/Utils/Json/LazyLoad.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Utils/Json/LazyLoad.cs b/Libraries/SPTarkov.Server.Core/Utils/Json/LazyLoad.cs index effd9d53..92d14be0 100644 --- a/Libraries/SPTarkov.Server.Core/Utils/Json/LazyLoad.cs +++ b/Libraries/SPTarkov.Server.Core/Utils/Json/LazyLoad.cs @@ -26,7 +26,10 @@ public class LazyLoad(Func deserialize) OnLazyLoadEventArgs args = new(_result); OnLazyLoad?.Invoke(this, args); - _result = args.Value; + if (args.Value != null) + { + _result = args.Value; + } autoCleanerTimeout = new Timer( _ =>