avoid a null ref

LSLKeyTest
UbitUmarov 2016-09-19 19:40:13 +01:00
parent cca01f5cda
commit 874ba6b363
1 changed files with 1 additions and 1 deletions

View File

@ -768,7 +768,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
else else
so = m_scene.GetSceneObjectGroup(localId); so = m_scene.GetSceneObjectGroup(localId);
if (!so.IsAttachment) if (so!= null && !so.IsAttachment)
deletes.Add(so); deletes.Add(so);
// if (deletes.Count == 0) // if (deletes.Count == 0)