Command Line DB was causing some problems if it was not used.
This commit is contained in:
parent
58e58083c2
commit
a593257faa
@ -93,7 +93,7 @@ namespace Volian.Base.Library
|
||||
public static string GetServer()
|
||||
{
|
||||
string str = GetCommand("DB", null);
|
||||
if (str.Contains(":"))
|
||||
if (str != null && str.Contains(":"))
|
||||
{
|
||||
string[] parts = str.Split(":".ToCharArray());
|
||||
return parts[0].Replace("._",".\\");
|
||||
@ -103,7 +103,7 @@ namespace Volian.Base.Library
|
||||
public static string GetItemIDs()
|
||||
{
|
||||
string str = GetCommand("DB", null);
|
||||
if (str.Contains(":"))
|
||||
if (str != null && str.Contains(":"))
|
||||
{
|
||||
string[] parts = str.Split(":".ToCharArray());
|
||||
if(parts.Length > 2) return parts[2];
|
||||
|
Loading…
x
Reference in New Issue
Block a user