aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Avatar
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
index 85b5d3f..cb65e9e 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
@@ -152,6 +152,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory.Transfer
152 new UUID(im.toAgentID), 152 new UUID(im.toAgentID),
153 client.AgentId, itemID); 153 client.AgentId, itemID);
154 154
155 if (itemCopy == null)
156 {
157 client.SendAgentAlertMessage("Can't find item to give. Nothing given.", false);
158 return;
159 }
160
155 byte[] itemCopyID = itemCopy.ID.GetBytes(); 161 byte[] itemCopyID = itemCopy.ID.GetBytes();
156 162
157 Array.Copy(itemCopyID, 0, im.binaryBucket, 1, 16); 163 Array.Copy(itemCopyID, 0, im.binaryBucket, 1, 16);