* "Fixed" a NRE with the new script engine Tedd committed
* Tedd will need to fix properly.0.6.1-post-fixes
parent
344b725d3b
commit
cbda728183
|
@ -54,16 +54,22 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
|
||||||
// New region is being created
|
// New region is being created
|
||||||
// Create a new script engine
|
// Create a new script engine
|
||||||
// Make sure we have config
|
// Make sure we have config
|
||||||
if (ConfigSource.Configs["SECS"] == null)
|
try
|
||||||
ConfigSource.AddConfig("SECS");
|
{
|
||||||
ScriptConfigSource = ConfigSource.Configs["SECS"];
|
if (ConfigSource.Configs["SECS"] == null)
|
||||||
|
ConfigSource.AddConfig("SECS");
|
||||||
// Is SECS enabled?
|
ScriptConfigSource = ConfigSource.Configs["SECS"];
|
||||||
if (ScriptConfigSource.GetBoolean("Enabled", false))
|
|
||||||
|
// Is SECS enabled?
|
||||||
|
if (ScriptConfigSource.GetBoolean("Enabled", false))
|
||||||
|
{
|
||||||
|
LoadEngine();
|
||||||
|
if (scriptEngine != null)
|
||||||
|
scriptEngine.Initialise(scene, source);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (NullReferenceException)
|
||||||
{
|
{
|
||||||
LoadEngine();
|
|
||||||
if (scriptEngine != null)
|
|
||||||
scriptEngine.Initialise(scene, source);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue