Make sure value is not null

This commit is contained in:
Archangel
2025-05-29 19:01:18 +02:00
committed by Jesse
parent 39afd6e24a
commit 6f3244362c
@@ -26,7 +26,10 @@ public class LazyLoad<T>(Func<T> deserialize)
OnLazyLoadEventArgs<T> args = new(_result);
OnLazyLoad?.Invoke(this, args);
_result = args.Value;
if (args.Value != null)
{
_result = args.Value;
}
autoCleanerTimeout = new Timer(
_ =>