Fix an ArgumentNullException when moving a DotNet scripted object to the next region

0.6.1-post-fixes
idb 2008-12-06 14:55:18 +00:00
parent a5bd2b2136
commit 84ba5dd962
1 changed files with 2 additions and 2 deletions

View File

@ -967,7 +967,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
{ {
IScriptInstance instance = GetInstance(itemID); IScriptInstance instance = GetInstance(itemID);
if (instance == null) if (instance == null)
return null; return "";
return instance.GetAssemblyName(); return instance.GetAssemblyName();
} }
@ -975,7 +975,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
{ {
IScriptInstance instance = GetInstance(itemID); IScriptInstance instance = GetInstance(itemID);
if (instance == null) if (instance == null)
return null; return "";
return instance.GetXMLState(); return instance.GetXMLState();
} }
} }