mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
In the osGetGrid functions, if the [GridInfo] section does not exist then return "Configuration Error", as already happens if there is no GridInfoURI
This commit is contained in:
@@ -1965,7 +1965,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
string retval = String.Empty;
|
||||
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))
|
||||
return "Configuration Error!";
|
||||
|
||||
Reference in New Issue
Block a user