From bd86ae3d67cdca9060704cee3d436af7d147e0d7 Mon Sep 17 00:00:00 2001 From: Kevin Cozens Date: Mon, 18 Aug 2014 16:00:49 -0400 Subject: [PATCH] Prevent exception if inventory item in llGiveInventory() call doesn't exist. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 0e6e8bbd71..50e4804ef0 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -4138,6 +4138,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (item == null) { Error("llGiveInventory", "Can't find inventory object '" + inventory + "'"); + return; } UUID objId = item.ItemID;