Fix exception when price checking corrupted gems #403
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This part of the parser does not work or I don't seem to grasp the functionality of this.
Sidekick/src/Sidekick.Apis.Poe/Parser/Metadata/MetadataParser.cs
Lines 55 to 59 in 9c4be79
It tries to parse an empty line which creates the error since there is no text.
The parser already gets the corrupted state from the property parse I didnt go through the code but I assume that property is used to set the variable for the price check page as well.
data.NameAndTypeDictionary.TryGetValue(parsingItem.Blocks[5].Lines[0].Text
Even if that empty block would not be there it would still parse the wrong text.
Thats why I removed the vaal gem part from the code.
These are the blocks from zero to last element as you can see
[]
would be the sixth element even if that element would not be there it would parseSkills can be managed in the Skills Panel.
The gem text was taken from the mentioned issue:
Closes #384