diff --git a/SafeExamBrowser.Configuration/DataResources/NetworkResourceLoader.cs b/SafeExamBrowser.Configuration/DataResources/NetworkResourceLoader.cs index 6010c006..43483b8f 100644 --- a/SafeExamBrowser.Configuration/DataResources/NetworkResourceLoader.cs +++ b/SafeExamBrowser.Configuration/DataResources/NetworkResourceLoader.cs @@ -146,7 +146,7 @@ namespace SafeExamBrowser.Configuration.DataResources /// private bool HasHtmlContent(HttpResponseMessage response) { - return response.Content.Headers.ContentType.MediaType == MediaTypeNames.Text.Html; + return response.Content.Headers.ContentType?.MediaType == MediaTypeNames.Text.Html; } private bool IsAvailable(Uri resource)