..Equals(String.Empty) is also not good
This commit is contained in:
@@ -72,7 +72,7 @@ namespace OpenSim.OfflineIM
|
||||
//
|
||||
// We tried, but this doesn't exist. We can't proceed.
|
||||
//
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
m_Database = LoadPlugin<IOfflineIMData>(dllName, new Object[] { connString, realm });
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace OpenSim.Services.AssetService
|
||||
//
|
||||
// We tried, but this doesn't exist. We can't proceed.
|
||||
//
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
m_Database = LoadPlugin<IAssetDataPlugin>(dllName);
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace OpenSim.Services.AssetService
|
||||
//
|
||||
// We tried, but this doesn't exist. We can't proceed.
|
||||
//
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
m_Database = LoadPlugin<IXAssetDataPlugin>(dllName);
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace OpenSim.Services.AuthorizationService
|
||||
//
|
||||
// We tried, but this doesn't exist. We can't proceed.
|
||||
//
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
m_Database = LoadPlugin<IAssetDataPlugin>(dllName);
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace OpenSim.Services.AvatarService
|
||||
//
|
||||
// We tried, but this doesn't exist. We can't proceed.
|
||||
//
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
m_Database = LoadPlugin<IAvatarData>(dllName, new Object[] { connString, realm });
|
||||
|
||||
@@ -138,10 +138,10 @@ namespace OpenSim.Services.FSAssetService
|
||||
}
|
||||
|
||||
// No databse connection found in either config
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
if (connectionString.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(connectionString))
|
||||
throw new Exception("Missing database connection string");
|
||||
|
||||
// Create Storage Provider
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace OpenSim.Services.GridService
|
||||
//
|
||||
// We tried, but this doesn't exist. We can't proceed.
|
||||
//
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
m_Database = LoadPlugin<IRegionData>(dllName, new Object[] { connString, realm });
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace OpenSim.Services.HypergridService
|
||||
//
|
||||
// We tried, but this doesn't exist. We can't proceed.
|
||||
//
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
m_Database = LoadPlugin<IHGTravelingData>(dllName, new Object[] { connString, realm });
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace OpenSim.Services.PresenceService
|
||||
//
|
||||
// We tried, but this doesn't exist. We can't proceed.
|
||||
//
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
m_Database = LoadPlugin<IPresenceData>(dllName, new Object[] { connString, realm });
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace OpenSim.Services.UserAccountService
|
||||
//
|
||||
// We tried, but this doesn't exist. We can't proceed.
|
||||
//
|
||||
if (dllName.Equals(String.Empty))
|
||||
if (string.IsNullOrEmpty(dllName))
|
||||
throw new Exception("No StorageProvider configured");
|
||||
|
||||
m_Database = LoadPlugin<IGridUserData>(dllName, new Object[] { connString, realm });
|
||||
|
||||
Reference in New Issue
Block a user