sentry-java
sentry-java copied to clipboard
`JsonObjectReader#nextList` ideally is renamed to `nextListOrNull` in case the list is empty or invalid
Description
{
"breadcrumbs": []
}
Currently, an empty list that is deserialized via nextList throws if the list is empty or invalid.
The logger is Failed to deserialize object in list.
The SDK degrades gracefully but we should not set the error level to ERROR in this case, either we do DEBUG or not log at all if the list is empty.
Users might understand that there's something wrong but there's not.