aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 7060ef4..719c300 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -1153,6 +1153,15 @@ namespace OpenSim.Region.Framework.Scenes
1153 1153
1154 TaskInventoryItem taskItem = part.Inventory.GetInventoryItem(itemId); 1154 TaskInventoryItem taskItem = part.Inventory.GetInventoryItem(itemId);
1155 1155
1156 if (null == taskItem)
1157 {
1158 m_log.WarnFormat("[PRIM INVENTORY]: Move of inventory item {0} from prim with local id {1} failed"
1159 + " because the inventory item could not be found",
1160 itemId, primLocalId);
1161
1162 return;
1163 }
1164
1156 if ((taskItem.CurrentPermissions & (uint)PermissionMask.Copy) == 0) 1165 if ((taskItem.CurrentPermissions & (uint)PermissionMask.Copy) == 0)
1157 { 1166 {
1158 // If the item to be moved is no copy, we need to be able to 1167 // If the item to be moved is no copy, we need to be able to