aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorMelanie2012-02-21 23:43:39 +0000
committerMelanie2012-02-21 23:43:39 +0000
commit65f5f60317da98379dd82f3c5cef1508997b2f43 (patch)
tree92ba6cd548cde217d084f7f5d146f49a48714556 /OpenSim/Region/Framework
parentMerge branch 'master' into careminster (diff)
parentRestore the taskItem null check that I accidentally blatted in 5397a6d (diff)
downloadopensim-SC_OLD-65f5f60317da98379dd82f3c5cef1508997b2f43.zip
opensim-SC_OLD-65f5f60317da98379dd82f3c5cef1508997b2f43.tar.gz
opensim-SC_OLD-65f5f60317da98379dd82f3c5cef1508997b2f43.tar.bz2
opensim-SC_OLD-65f5f60317da98379dd82f3c5cef1508997b2f43.tar.xz
Merge branch 'master' into careminster
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