potencial null ref

LSLKeyTest
UbitUmarov 2016-08-24 01:34:21 +01:00
parent 517064121d
commit 55680c9cd6
1 changed files with 5 additions and 3 deletions

View File

@ -139,10 +139,12 @@ namespace OpenSim.Server.Base
startupConfig = Config.Configs["Startup"]; startupConfig = Config.Configs["Startup"];
} }
if (startupConfig != null)
{
ConfigDirectory = startupConfig.GetString("ConfigDirectory", "."); ConfigDirectory = startupConfig.GetString("ConfigDirectory", ".");
prompt = startupConfig.GetString("Prompt", prompt); prompt = startupConfig.GetString("Prompt", prompt);
}
// Allow derived classes to load config before the console is opened. // Allow derived classes to load config before the console is opened.
ReadConfig(); ReadConfig();