Fixed an error that would show up in the console when a club image couldn't be drawn in certain circumstances

This commit is contained in:
Kwoth
2021-11-04 17:01:18 +01:00
parent aae2805785
commit c80898a7bf
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
- `.slot` redesigned (and updated entries in `images.yml`)
- Reduced required permissions for .qdel (thanks to tbodt)
## [3.0.7] - 5.10.2021
## [3.0.7] - 05.10.2021
### Added
- `.streamsclear` re-added. It will remove all followed streams on the server.

View File

@@ -357,7 +357,7 @@ namespace NadekoBot.Extensions
public static bool IsImage(this HttpResponseMessage msg, out string mimeType)
{
mimeType = msg.Content.Headers.ContentType.MediaType;
mimeType = msg.Content.Headers.ContentType?.MediaType;
if (mimeType == "image/png"
|| mimeType == "image/jpeg"
|| mimeType == "image/gif")