In the osGetGrid functions, if the [GridInfo] section does not exist then return "Configuration Error", as already happens if there is no GridInfoURI
parent
66cb533f26
commit
1f34c8277d
|
@ -1965,7 +1965,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
string retval = String.Empty;
|
string retval = String.Empty;
|
||||||
IConfigSource config = m_ScriptEngine.ConfigSource;
|
IConfigSource config = m_ScriptEngine.ConfigSource;
|
||||||
string url = config.Configs["GridInfo"].GetString("GridInfoURI", String.Empty);
|
string url = null;
|
||||||
|
|
||||||
|
IConfig gridInfoConfig = config.Configs["GridInfo"];
|
||||||
|
|
||||||
|
if (gridInfoConfig != null)
|
||||||
|
url = gridInfoConfig.GetString("GridInfoURI", String.Empty);
|
||||||
|
|
||||||
if (String.IsNullOrEmpty(url))
|
if (String.IsNullOrEmpty(url))
|
||||||
return "Configuration Error!";
|
return "Configuration Error!";
|
||||||
|
|
Loading…
Reference in New Issue