Deal with possibly un-initialized scripts in object transfers. Mantis #5310

viewer-2-initial-appearance
Diva Canto 2011-01-06 16:17:43 -08:00
parent 81587466e7
commit fda56618e1
1 changed files with 4 additions and 1 deletions

View File

@ -864,7 +864,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
public Dictionary<string, object> GetVars()
{
return m_Script.GetVars();
if (m_Script != null)
return m_Script.GetVars();
else
return new Dictionary<string, object>();
}
public void SetVars(Dictionary<string, object> vars)