mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
Prevent exception if inventory item in llGiveInventory() call doesn't exist.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user