diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/AsyncSceneObjectGroupDeleter.cs | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/AsyncSceneObjectGroupDeleter.cs b/OpenSim/Region/Environment/Scenes/AsyncSceneObjectGroupDeleter.cs index bd81a6d..cbcbc5c 100644 --- a/OpenSim/Region/Environment/Scenes/AsyncSceneObjectGroupDeleter.cs +++ b/OpenSim/Region/Environment/Scenes/AsyncSceneObjectGroupDeleter.cs | |||
@@ -119,10 +119,19 @@ namespace OpenSim.Region.Environment.Scenes | |||
119 | "[SCENE]: Sending deleted object to user's inventory, {0} item(s) remaining.", left); | 119 | "[SCENE]: Sending deleted object to user's inventory, {0} item(s) remaining.", left); |
120 | 120 | ||
121 | x = m_inventoryDeletes.Dequeue(); | 121 | x = m_inventoryDeletes.Dequeue(); |
122 | m_scene.DeleteToInventory(x.destination, | 122 | if (x.objectGroup.RootObject != null) |
123 | x.folderID, x.objectGroup, x.remoteClient, | 123 | { |
124 | x.permissionToDelete); | 124 | try |
125 | 125 | { | |
126 | m_scene.DeleteToInventory(x.destination, | ||
127 | x.folderID, x.objectGroup, x.remoteClient, | ||
128 | x.permissionToDelete); | ||
129 | } | ||
130 | catch (Exception e) | ||
131 | { | ||
132 | m_log.DebugFormat("Exception background deleting object: "+e.ToString()); | ||
133 | } | ||
134 | } | ||
126 | return true; | 135 | return true; |
127 | } | 136 | } |
128 | } | 137 | } |