Catch IllegalStateException
when attempting to parse wrong formatted product image jsons
#11589
Labels
priority: low
Not many people are affected or there’s a workaround, etc.
type: crash
The worst kind of bug.
We are experiencing some crashes when attempting to parse the following json section from a product model:
The reason for the crash is because there seems to be some plugin (we don't know which one) that is modifying the structure of that json, returning something like this, instead of the json above:
This causes the following code to crash, because we are only catching
JsonParseException
.The idea of this issue is 2 things:
IllegalStateException
as wellIllegalStateException
orJsonParseException
happen in this context, to keep track of when this is happening without making the app crash.The text was updated successfully, but these errors were encountered: