The guild emblem is optional #10
Labels
Area: Web API v2
Related to the v2 web API
Duration: Medium
Between 2 and 8 hours of estimated work
Priority: Medium
Medium priority
Resolution: Fixed
The issue has been fixed
Type: Bug
Something isn't working
There are quite a few guilds that have no emblem in the API, for example: https://api.guildwars2.com/v2/guild/bd558153-0f8e-e911-81a8-cde2ac1eed30
The Emblem value is defaulted to an emblem with values of 0, but more importantly the Flags do not work correctly. An
InvalidCastException
is thrown when gettingGw2Sharp.WebApi.V2.Models.ApiFlags.List
in this case.To reproduce:
Exception:
The text was updated successfully, but these errors were encountered: