mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -62,12 +62,12 @@ namespace OpenSim.Server.Handlers.Hypergrid
|
||||
|
||||
string theService = serverConfig.GetString("LocalServiceModule",
|
||||
String.Empty);
|
||||
if (theService == String.Empty)
|
||||
if (theService.Length == 0)
|
||||
throw new Exception("No LocalServiceModule in config file");
|
||||
m_TheService = ServerUtils.LoadPlugin<IHGFriendsService>(theService, args);
|
||||
|
||||
theService = serverConfig.GetString("UserAgentService", string.Empty);
|
||||
if (theService == String.Empty)
|
||||
if (theService.Length == 0)
|
||||
throw new Exception("No UserAgentService in " + m_ConfigName);
|
||||
m_UserAgentService = ServerUtils.LoadPlugin<IUserAgentService>(theService, new Object[] { config, localConn });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user