Prevent exception if inventory item in llGiveInventory() call doesn't exist.
parent
c9f494c00e
commit
bd86ae3d67
|
@ -4138,6 +4138,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
Error("llGiveInventory", "Can't find inventory object '" + inventory + "'");
|
Error("llGiveInventory", "Can't find inventory object '" + inventory + "'");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
UUID objId = item.ItemID;
|
UUID objId = item.ItemID;
|
||||||
|
|
Loading…
Reference in New Issue