You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some ComicInfo.xml content triggers exceptions during the deserialization. In two cases I investigated I have found that it was being triggered by an empty Count or Day element.
For example in the following sequence, the empty Count element triggers the bug, because it deserializes into a type int property and the deserialization has no default value to use, while the similarly empty element Number works fine because its target property is of type string.
<ComicInfo>
<Title>The Right Hand of Doom</Title>
<Series>Hellboy</Series>
<Number />
<Count />
<Volume>4</Volume>
In order to fix this, all elements that can be empty (minOccurs="0") and that deserialize into a type int property should have a default value.
The text was updated successfully, but these errors were encountered:
Some ComicInfo.xml content triggers exceptions during the deserialization. In two cases I investigated I have found that it was being triggered by an empty Count or Day element.
For example in the following sequence, the empty Count element triggers the bug, because it deserializes into a type
int
property and the deserialization has no default value to use, while the similarly empty element Number works fine because its target property is of type string.In order to fix this, all elements that can be empty (minOccurs="0") and that deserialize into a type int property should have a default value.
The text was updated successfully, but these errors were encountered: