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 6df25d6..e458ecf 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -782,8 +782,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
782 | public void RemoveTaskInventory(IClientAPI remoteClient, UUID itemID, uint localID) | 782 | public void RemoveTaskInventory(IClientAPI remoteClient, UUID itemID, uint localID) |
783 | { | 783 | { |
784 | SceneObjectPart part = GetSceneObjectPart(localID); | 784 | SceneObjectPart part = GetSceneObjectPart(localID); |
785 | SceneObjectGroup group = part.ParentGroup; | 785 | SceneObjectGroup group = null; |
786 | if (group != null) | 786 | if (part != null) |
787 | { | ||
788 | group = part.ParentGroup; | ||
789 | } | ||
790 | if (part != null && group != null) | ||
787 | { | 791 | { |
788 | TaskInventoryItem item = group.GetInventoryItem(localID, itemID); | 792 | TaskInventoryItem item = group.GetInventoryItem(localID, itemID); |
789 | if (item == null) | 793 | if (item == null) |