From e7dbe6d4be084fef63e14cb495483bf3a29031e0 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 25 Aug 2018 16:52:49 -0400 Subject: [PATCH] null check response --- src/Icons/Services/IconFetchingService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Icons/Services/IconFetchingService.cs b/src/Icons/Services/IconFetchingService.cs index 9e1c85477..980adf2b3 100644 --- a/src/Icons/Services/IconFetchingService.cs +++ b/src/Icons/Services/IconFetchingService.cs @@ -90,8 +90,8 @@ namespace Bit.Icons.Services if(response?.Content == null || !response.IsSuccessStatusCode) { + _logger.LogInformation("Couldn't load a website: {0}.", response?.StatusCode.ToString() ?? "null"); Cleanup(response); - _logger.LogInformation("Couldn't load a website: {0}.", response.StatusCode); return null; }