aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-08-01 20:29:25 +0100
committerJustin Clark-Casey (justincc)2014-08-01 20:29:25 +0100
commit7cec4997dbdb01a6768d809a6498c488b90d798f (patch)
tree3a6c3920ca258a21ab50395dd1d00f098311ff8d
parentIf REMOVEAGENTFROMGROUP core groups call fails because requesting agent does ... (diff)
downloadopensim-SC_OLD-7cec4997dbdb01a6768d809a6498c488b90d798f.zip
opensim-SC_OLD-7cec4997dbdb01a6768d809a6498c488b90d798f.tar.gz
opensim-SC_OLD-7cec4997dbdb01a6768d809a6498c488b90d798f.tar.bz2
opensim-SC_OLD-7cec4997dbdb01a6768d809a6498c488b90d798f.tar.xz
Fix regression in SimulatorFeatures module that would stop OpenSimulator from starting if no [SimulatorFeatures] section was present in config.
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs32
1 files changed, 20 insertions, 12 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
index 2859953..91226ae 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
@@ -78,20 +78,28 @@ namespace OpenSim.Region.ClientStack.Linden
78 78
79 public void Initialise(IConfigSource source) 79 public void Initialise(IConfigSource source)
80 { 80 {
81 IConfig config = source.Configs ["SimulatorFeatures"]; 81 IConfig config = source.Configs["SimulatorFeatures"];
82 string featuresURI = config.GetString ("ExtraFeaturesServiceURI", string.Empty); 82
83 if (string.IsNullOrEmpty (featuresURI)) { 83 if (config != null)
84 m_log.Info ("ExtraFeaturesServiceURI is undefined. The grid's ExtraFeatures will not be available to regions in this instnace."); 84 {
85 } else { 85 string featuresURI = config.GetString("ExtraFeaturesServiceURI", string.Empty);
86 GetGridExtraFeatures(featuresURI); 86
87 } 87 if (string.IsNullOrEmpty(featuresURI))
88 {
89 m_log.Info("ExtraFeaturesServiceURI is undefined. The grid's ExtraFeatures will not be available to regions in this instnace.");
90 }
91 else
92 {
93 GetGridExtraFeatures(featuresURI);
94 }
88 95
89 if (config != null && m_AllowOverride == true) 96 if (m_AllowOverride)
90 { 97 {
91 m_SearchURL = config.GetString("SearchServerURI", string.Empty); 98 m_SearchURL = config.GetString("SearchServerURI", m_SearchURL);
92 m_DestinationGuideURL = config.GetString ("DestinationGuideURI", string.Empty); 99 m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL);
93 100
94 m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported); 101 m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported);
102 }
95 } 103 }
96 104
97 AddDefaultFeatures(); 105 AddDefaultFeatures();