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

0.8-post-fixes
Kevin Cozens 2014-08-18 16:00:49 -04:00
parent c9f494c00e
commit bd86ae3d67
1 changed files with 1 additions and 0 deletions

View File

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