mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -92,14 +92,14 @@ namespace OpenSim.Server.Base
|
||||
else
|
||||
{
|
||||
string cert_path = networkConfig.GetString("cert_path", string.Empty);
|
||||
if (cert_path == string.Empty)
|
||||
if (cert_path.Length == 0)
|
||||
{
|
||||
System.Console.WriteLine("ERROR: Path to X509 certificate is missing, server can't start.");
|
||||
Environment.Exit(1);
|
||||
}
|
||||
|
||||
string cert_pass = networkConfig.GetString("cert_pass", string.Empty);
|
||||
if (cert_pass == string.Empty)
|
||||
if (cert_pass.Length == 0)
|
||||
{
|
||||
System.Console.WriteLine("ERROR: Password for X509 certificate is missing, server can't start.");
|
||||
Environment.Exit(1);
|
||||
@@ -120,13 +120,13 @@ namespace OpenSim.Server.Base
|
||||
if (!ssl_external)
|
||||
{
|
||||
string cert_path = networkConfig.GetString("cert_path", string.Empty);
|
||||
if ( cert_path == string.Empty )
|
||||
if ( cert_path.Length == 0 )
|
||||
{
|
||||
System.Console.WriteLine("Path to X509 certificate is missing, server can't start.");
|
||||
Thread.CurrentThread.Abort();
|
||||
}
|
||||
string cert_pass = networkConfig.GetString("cert_pass", string.Empty);
|
||||
if ( cert_pass == string.Empty )
|
||||
if ( cert_pass.Length == 0 )
|
||||
{
|
||||
System.Console.WriteLine("Password for X509 certificate is missing, server can't start.");
|
||||
Thread.CurrentThread.Abort();
|
||||
|
||||
@@ -219,7 +219,7 @@ namespace OpenSim.Server.Base
|
||||
public static T LoadPlugin<T> (string dllName, Object[] args) where T:class
|
||||
{
|
||||
// This is good to debug configuration problems
|
||||
//if (dllName == string.Empty)
|
||||
//if (dllName.Length == 0)
|
||||
// Util.PrintCallStack();
|
||||
|
||||
string className = String.Empty;
|
||||
|
||||
Reference in New Issue
Block a user