diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-23 12:04:33 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-23 12:04:33 -0400 |
| commit | 11c5bd4a74a3e2bb9eeb10157fd80da5e9f8c7af (patch) | |
| tree | 40a6f7ead81ccf9d8d76380f9020a665bfda23bf /MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs | |
| parent | 4c8236d887f4f57a54f78e140536ffbe5a15615f (diff) | |
update mouse handler
Diffstat (limited to 'MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs index 28c3bbb7b..e3a00efb5 100644 --- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs +++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs @@ -208,6 +208,12 @@ namespace MediaBrowser.Common.Implementations.Security using (var response = await _httpClient.Post(options).ConfigureAwait(false)) { var reg = _jsonSerializer.DeserializeFromStream<RegRecord>(response.Content); + + if (reg == null) + { + _logger.Warn("Result from appstore registration was null. Defaulting to empty."); + reg = new RegRecord(); + } if (!String.IsNullOrEmpty(reg.key)) { SupporterKey = reg.key; |
