From ac27d9250d9c5b657357bd34e891c9ae23885d72 Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 28 Mar 2008 14:59:52 +0000 Subject: attempt to fix mantis # 779. --- OpenSim/Region/Environment/Scenes/Scene.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 364d3c7..b8a4831 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -2265,8 +2265,14 @@ namespace OpenSim.Region.Environment.Scenes { // Tell the object to do permission update - SceneObjectGroup chObjectGroup = GetGroupByPrim(localId); - chObjectGroup.UpdatePermissions(agentID, field, localId, mask, set); + if (localId != 0) + { + SceneObjectGroup chObjectGroup = GetGroupByPrim(localId); + if (chObjectGroup != null) + { + chObjectGroup.UpdatePermissions(agentID, field, localId, mask, set); + } + } } } -- cgit v1.1