mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
potencial null ref
This commit is contained in:
@@ -139,10 +139,12 @@ namespace OpenSim.Server.Base
|
||||
startupConfig = Config.Configs["Startup"];
|
||||
}
|
||||
|
||||
ConfigDirectory = startupConfig.GetString("ConfigDirectory", ".");
|
||||
|
||||
prompt = startupConfig.GetString("Prompt", prompt);
|
||||
if (startupConfig != null)
|
||||
{
|
||||
ConfigDirectory = startupConfig.GetString("ConfigDirectory", ".");
|
||||
|
||||
prompt = startupConfig.GetString("Prompt", prompt);
|
||||
}
|
||||
// Allow derived classes to load config before the console is opened.
|
||||
ReadConfig();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user