aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Logging
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-17 12:35:29 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-17 12:35:29 -0400
commitbba0c564c7f9db6a6d5d2b16b1c8ae453eeaed34 (patch)
tree890566689f2d6e76eb0f7cef2c87c1b892bc5aa4 /MediaBrowser.Common.Implementations/Logging
parentba613d567102bd2c3ec2ce2c5f7f94dcd04f1c73 (diff)
remove dead interface objects
Diffstat (limited to 'MediaBrowser.Common.Implementations/Logging')
-rw-r--r--MediaBrowser.Common.Implementations/Logging/NLogger.cs4
1 files changed, 3 insertions, 1 deletions
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()));
}
}