From 874ba6b363895fae6285ce80d958c19fb3282481 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 19 Sep 2016 19:40:13 +0100 Subject: avoid a null ref --- .../Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs index e77f0aa..e65f860 100644 --- a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs +++ b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs @@ -768,7 +768,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands else so = m_scene.GetSceneObjectGroup(localId); - if (!so.IsAttachment) + if (so!= null && !so.IsAttachment) deletes.Add(so); // if (deletes.Count == 0) -- cgit v1.1