attempt to fix mantis # 779.

0.6.0-stable
MW 2008-03-28 14:59:52 +00:00
parent 8c901e9347
commit ac27d9250d
1 changed files with 8 additions and 2 deletions

View File

@ -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);
}
}
}
}