diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-10-20 15:27:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-20 15:27:40 -0400 |
| commit | 367e17826eb49d855d9ae30462072c5e295f5b33 (patch) | |
| tree | 39e06e3c38bbd4933ed3aeb100f8f2a22a25f211 /MediaBrowser.Common.Implementations/Logging/NLogger.cs | |
| parent | d2d49b6b760ad3d74712c0839c66296476ab858e (diff) | |
| parent | 3c1114228ba3b6a19cb73fa7f9aaa4e3ce3cab80 (diff) | |
Merge pull request #2250 from MediaBrowser/beta
Beta
Diffstat (limited to 'MediaBrowser.Common.Implementations/Logging/NLogger.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/Logging/NLogger.cs | 4 |
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())); } } |
