Prevent exception if inventory item in llGiveInventory() call doesn't exist.

bullet-2.82
Kevin Cozens 2014-08-18 16:00:49 -04:00
parent 3a643e2456
commit 321816b32c
1 changed files with 1 additions and 0 deletions

View File

@ -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;