diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 89ce4ae..bce7d32 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -846,8 +846,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
846 | public void RemoveTaskInventory(IClientAPI remoteClient, UUID itemID, uint localID) | 846 | public void RemoveTaskInventory(IClientAPI remoteClient, UUID itemID, uint localID) |
847 | { | 847 | { |
848 | SceneObjectPart part = GetSceneObjectPart(localID); | 848 | SceneObjectPart part = GetSceneObjectPart(localID); |
849 | SceneObjectGroup group = part.ParentGroup; | 849 | SceneObjectGroup group = null; |
850 | if (group != null) | 850 | if (part != null) |
851 | { | ||
852 | group = part.ParentGroup; | ||
853 | } | ||
854 | if (part != null && group != null) | ||
851 | { | 855 | { |
852 | TaskInventoryItem item = group.GetInventoryItem(localID, itemID); | 856 | TaskInventoryItem item = group.GetInventoryItem(localID, itemID); |
853 | if (item == null) | 857 | if (item == null) |