From 1261f51412fe6c3ddab12f615026b2c4ecc4b62b Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Fri, 16 Oct 2015 18:36:34 -0400 Subject: Avoid null ref in logger --- MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs') diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs index d953012f1..6cb9161bc 100644 --- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs +++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs @@ -216,7 +216,7 @@ namespace MediaBrowser.Common.Implementations.Security } catch (Exception e) { - _logger.ErrorException("Error registering appstore purchase {0}", e, parameters); + _logger.ErrorException("Error registering appstore purchase {0}", e, parameters ?? "NO PARMS SENT"); //TODO - really need to write this to a file so we can re-try it automatically throw new ApplicationException("Error registering store sale"); } -- cgit v1.2.3