mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Guard against a failure to find an inventory item in a move request by complaining in the log rather than terminating the session
This commit is contained in:
@@ -968,12 +968,19 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
|
||||
TaskInventoryItem taskItem = part.GetInventoryItem(itemId);
|
||||
|
||||
if (null == taskItem)
|
||||
{
|
||||
m_log.WarnFormat("[PRIM INVENTORY]: Move of inventory item {0} from prim with local id {1} failed"
|
||||
+ " because the inventory item could not be found",
|
||||
itemId, primLocalId);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Only owner can copy
|
||||
if (remoteClient.AgentId != taskItem.OwnerID)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
MoveTaskInventoryItem(remoteClient, folderId, part, itemId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user