From 1f74f013b23a8bbcc94d79aa57d35e1929b662d6 Mon Sep 17 00:00:00 2001 From: meta7 Date: Wed, 15 Sep 2010 07:59:28 -0700 Subject: Don't fart when deserializing a prim with no ParentGroup set yet --- OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 2de439b..a9a5c8a 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -132,7 +132,11 @@ namespace OpenSim.Region.Framework.Scenes } HasInventoryChanged = true; - m_part.ParentGroup.HasGroupChanged = true; + if (m_part.ParentGroup != null) + { + m_part.ParentGroup.HasGroupChanged = true; + } + IList items = new List(Items.Values); Items.Clear(); -- cgit v1.1