From bba0c564c7f9db6a6d5d2b16b1c8ae453eeaed34 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 17 Oct 2016 12:35:29 -0400 Subject: remove dead interface objects --- MediaBrowser.Common.Implementations/Logging/NLogger.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Common.Implementations/Logging') diff --git a/MediaBrowser.Common.Implementations/Logging/NLogger.cs b/MediaBrowser.Common.Implementations/Logging/NLogger.cs index 97bc437a0..11f41261a 100644 --- a/MediaBrowser.Common.Implementations/Logging/NLogger.cs +++ b/MediaBrowser.Common.Implementations/Logging/NLogger.cs @@ -127,7 +127,9 @@ namespace MediaBrowser.Common.Implementations.Logging { for (var i = 0; i < paramList.Length; i++) { - message = message.Replace("{" + i + "}", paramList[i].ToString()); + var obj = paramList[i]; + + message = message.Replace("{" + i + "}", (obj == null ? "null" : obj.ToString())); } } -- cgit v1.2.3