From a59944792237938ce62bd82b8479ee06e9be654f Mon Sep 17 00:00:00 2001 From: Nicola Carminati Date: Thu, 31 Jan 2019 15:51:42 +0100 Subject: [PATCH] Fix ServerConfig Read --- Step.Config/Config/serverConfig.xml | 2 ++ Step.UI/ServerControlWindow.cs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Step.Config/Config/serverConfig.xml b/Step.Config/Config/serverConfig.xml index 562bbb4b..963b65d2 100644 --- a/Step.Config/Config/serverConfig.xml +++ b/Step.Config/Config/serverConfig.xml @@ -16,5 +16,7 @@ true localhost false + + \ No newline at end of file diff --git a/Step.UI/ServerControlWindow.cs b/Step.UI/ServerControlWindow.cs index 2255bba2..ea78e3ae 100644 --- a/Step.UI/ServerControlWindow.cs +++ b/Step.UI/ServerControlWindow.cs @@ -32,7 +32,8 @@ namespace Step.UI //End the update LISTThreadStatus.EndUpdate(); - TXTType.Text = NcConfig.NcVendor; + if(NcConfig != null && NcConfig.NcVendor != null) + TXTType.Text = NcConfig.NcVendor; InitializeMessageListeners();