From 9a42589837802aea2d49457a2bf75128a7eacc7f 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 991107ea46..a950700597 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -4104,6 +4104,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (item == null) { Error("llGiveInventory", "Can't find inventory object '" + inventory + "'"); + return; } UUID objId = item.ItemID;