aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index b479fed..b0e4a87 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -968,12 +968,19 @@ namespace OpenSim.Region.Environment.Scenes
968 } 968 }
969 969
970 TaskInventoryItem taskItem = part.GetInventoryItem(itemId); 970 TaskInventoryItem taskItem = part.GetInventoryItem(itemId);
971
972 if (null == taskItem)
973 {
974 m_log.WarnFormat("[PRIM INVENTORY]: Move of inventory item {0} from prim with local id {1} failed"
975 + " because the inventory item could not be found",
976 itemId, primLocalId);
977
978 return;
979 }
971 980
972 // Only owner can copy 981 // Only owner can copy
973 if (remoteClient.AgentId != taskItem.OwnerID) 982 if (remoteClient.AgentId != taskItem.OwnerID)
974 {
975 return; 983 return;
976 }
977 984
978 MoveTaskInventoryItem(remoteClient, folderId, part, itemId); 985 MoveTaskInventoryItem(remoteClient, folderId, part, itemId);
979 } 986 }