From 11c5bd4a74a3e2bb9eeb10157fd80da5e9f8c7af Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 23 Oct 2015 12:04:33 -0400 Subject: update mouse handler --- .../Security/PluginSecurityManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) (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 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(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; -- cgit v1.2.3