From f1fe9420f210e51c63e34e381648bd9b8e9c8960 Mon Sep 17 00:00:00 2001 From: "jeffery.thompson" Date: Fri, 21 Jul 2017 12:08:37 -0400 Subject: [PATCH] IcdConsole does not call string.Format if there are no args --- ICD.Common.Utils/IcdConsole.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ICD.Common.Utils/IcdConsole.cs b/ICD.Common.Utils/IcdConsole.cs index dc065ce..5505eb6 100644 --- a/ICD.Common.Utils/IcdConsole.cs +++ b/ICD.Common.Utils/IcdConsole.cs @@ -1,4 +1,5 @@ using System; +using System.Linq; using ICD.Common.Properties; #if SIMPLSHARP using Crestron.SimplSharp; @@ -34,7 +35,8 @@ namespace ICD.Common.Utils [PublicAPI] public static void ConsoleCommandResponse(string message, params object[] args) { - message = string.Format(message, args); + if(args != null && args.Any()) + message = string.Format(message, args); #if SIMPLSHARP try