1
0
Fork 0

add yengine npe fix

master
Chris 2021-01-18 23:51:11 +01:00
parent 012c0f415f
commit 04e0ff34f9
1 changed files with 28 additions and 0 deletions

28
Patch/0001-Fix-NPE.patch Normal file
View File

@ -0,0 +1,28 @@
From ca7b50bbe4b43cc6f882e04e0adb62719cf6ffe5 Mon Sep 17 00:00:00 2001
From: Chris <christopher@clatza.dev>
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