Avoid null ref in logger

This commit is contained in:
Eric Reed 2015-10-16 18:36:34 -04:00
parent 5d74fcbb87
commit 1261f51412

View File

@ -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");
}