From ca7b50bbe4b43cc6f882e04e0adb62719cf6ffe5 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 18 Jan 2021 23:50:15 +0100 Subject: [PATCH] Fix NPE --- OpenSim/Region/ScriptEngine/YEngine/XMRHeapTracker.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRHeapTracker.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRHeapTracker.cs index f3e38c421d..3b8909a46d 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRHeapTracker.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRHeapTracker.cs @@ -126,7 +126,10 @@ namespace OpenSim.Region.ScriptEngine.Yengine { try { - return lis.Size; + if(lis != null) + return lis.Size; + + return 0; } catch { -- 2.29.2.windows.3