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

0.8-extended
Kevin Cozens 2014-08-18 16:00:49 -04:00 committed by Justin Clark-Casey
parent d0ed6ed86e
commit 9a42589837
1 changed files with 1 additions and 0 deletions

View File

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