mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -81,7 +81,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Authentication
|
||||
string serviceDll = userConfig.GetString("LocalServiceModule",
|
||||
String.Empty);
|
||||
|
||||
if (serviceDll == String.Empty)
|
||||
if (serviceDll.Length == 0)
|
||||
{
|
||||
m_log.Error("[AUTH CONNECTOR]: No LocalServiceModule named in section AuthenticationService");
|
||||
return;
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Avatar
|
||||
string serviceDll = userConfig.GetString("LocalServiceModule",
|
||||
String.Empty);
|
||||
|
||||
if (serviceDll == String.Empty)
|
||||
if (serviceDll.Length == 0)
|
||||
{
|
||||
m_log.Error("[AVATAR CONNECTOR]: No LocalServiceModule named in section AvatarService");
|
||||
return;
|
||||
|
||||
@@ -189,7 +189,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
public string RegisterRegion(UUID scopeID, GridRegion regionInfo)
|
||||
{
|
||||
string msg = m_LocalGridService.RegisterRegion(scopeID, regionInfo);
|
||||
if (msg == string.Empty && m_RemoteGridService != null)
|
||||
if (msg.Length == 0 && m_RemoteGridService != null)
|
||||
return m_RemoteGridService.RegisterRegion(scopeID, regionInfo);
|
||||
|
||||
return msg;
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.GridUser
|
||||
|
||||
string serviceDll = userConfig.GetString("LocalServiceModule", String.Empty);
|
||||
|
||||
if (serviceDll == String.Empty)
|
||||
if (serviceDll.Length == 0)
|
||||
{
|
||||
m_log.Error("[LOCAL GRID USER SERVICE CONNECTOR]: No LocalServiceModule named in section GridUserService");
|
||||
return;
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
|
||||
string localDll = inventoryConfig.GetString("LocalGridInventoryService",
|
||||
String.Empty);
|
||||
|
||||
if (localDll == String.Empty)
|
||||
if (localDll.Length == 0)
|
||||
{
|
||||
m_log.Error("[HG INVENTORY CONNECTOR]: No LocalGridInventoryService named in section InventoryService");
|
||||
//return;
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
|
||||
|
||||
string serviceDll = inventoryConfig.GetString("LocalServiceModule", String.Empty);
|
||||
|
||||
if (serviceDll == String.Empty)
|
||||
if (serviceDll.Length == 0)
|
||||
{
|
||||
m_log.Error("[LOCAL INVENTORY SERVICES CONNECTOR]: No LocalServiceModule named in section InventoryService");
|
||||
return;
|
||||
@@ -184,7 +184,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
|
||||
// Protect ourselves against the caller subsequently modifying the items list
|
||||
List<InventoryItemBase> items = new List<InventoryItemBase>(invCol.Items);
|
||||
|
||||
WorkManager.RunInThread(delegate
|
||||
WorkManager.RunInThreadPool(delegate
|
||||
{
|
||||
foreach (InventoryItemBase item in items)
|
||||
if (!string.IsNullOrEmpty(item.CreatorData))
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage
|
||||
}
|
||||
|
||||
string service = config.GetString("LocalServiceModule", string.Empty);
|
||||
if (service == string.Empty)
|
||||
if (service.Length == 0)
|
||||
{
|
||||
m_log.WarnFormat("[MAP IMAGE SERVICE MODULE]: No service dll given in config. Unable to proceed.");
|
||||
return;
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MuteList
|
||||
string serviceDll = userConfig.GetString("LocalServiceModule",
|
||||
String.Empty);
|
||||
|
||||
if (serviceDll == String.Empty)
|
||||
if (serviceDll.Length == 0)
|
||||
{
|
||||
m_log.Error("[MuteList LOCALCONNECTOR]: No LocalServiceModule named in section MuteListService");
|
||||
return;
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence
|
||||
|
||||
string serviceDll = inventoryConfig.GetString("LocalServiceModule", String.Empty);
|
||||
|
||||
if (serviceDll == String.Empty)
|
||||
if (serviceDll.Length == 0)
|
||||
{
|
||||
m_log.Error("[LOCAL PRESENCE CONNECTOR]: No LocalServiceModule named in section PresenceService");
|
||||
return;
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
|
||||
|
||||
string serviceDll = userConfig.GetString("LocalServiceModule", String.Empty);
|
||||
|
||||
if (serviceDll == String.Empty)
|
||||
if (serviceDll.Length == 0)
|
||||
{
|
||||
m_log.Error("[LOCAL USER ACCOUNT SERVICE CONNECTOR]: No LocalServiceModule named in section UserService");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user