From 496d83d940efe71ec7cbadd59c08804f4671c480 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sun, 24 May 2020 15:44:21 +0300 Subject: JobProgress Tester Utility for Vica. --- Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModelLocator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModelLocator.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModelLocator.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModelLocator.cs index 8b75b4517..95aed6c44 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModelLocator.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModelLocator.cs @@ -91,7 +91,7 @@ namespace Tango.PPC.UI TangoIOC.Default.Unregister(); TangoIOC.Default.Unregister(); - if (App.StartupArgs.Contains("-webDebug")) + if (App.StartupArgs != null && App.StartupArgs.Contains("-webDebug")) { TangoIOC.Default.Register(new PPCWebClient("http://localhost:1111", null)); } -- cgit v1.3.1