Fix a nullref while object is being created

avinationmerge
Melanie 2012-08-28 22:16:01 +02:00
parent b1d0fab954
commit 5284e514d5
1 changed files with 2 additions and 1 deletions

View File

@ -3025,6 +3025,7 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name="objectGroup"></param> /// <param name="objectGroup"></param>
public virtual void DetachFromBackup() public virtual void DetachFromBackup()
{ {
if (m_scene != null)
m_scene.SceneGraph.FireDetachFromBackup(this); m_scene.SceneGraph.FireDetachFromBackup(this);
if (m_isBackedUp && Scene != null) if (m_isBackedUp && Scene != null)
m_scene.EventManager.OnBackup -= ProcessBackup; m_scene.EventManager.OnBackup -= ProcessBackup;