Fix a nullref while object is being created
parent
b1d0fab954
commit
5284e514d5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue