Browse Source

Null check on footer iconUrl

pull/734/head
moiph 8 years ago
parent
commit
b415db8220
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Entities/Messages/EmbedBuilder.cs

+ 1
- 1
src/Discord.Net.Rest/Entities/Messages/EmbedBuilder.cs View File

@@ -372,7 +372,7 @@ namespace Discord
get => _footer.IconUrl; get => _footer.IconUrl;
set set
{ {
if (!Uri.IsWellFormedUriString(value, UriKind.Absolute)) throw new ArgumentException("Url must be a well-formed URI", nameof(IconUrl));
if (value != null && !Uri.IsWellFormedUriString(value, UriKind.Absolute)) throw new ArgumentException("Url must be a well-formed URI", nameof(IconUrl));
_footer.IconUrl = value; _footer.IconUrl = value;
} }
} }


Loading…
Cancel
Save