sentry-java
sentry-java copied to clipboard
public Breadcrumb() causes ArrayIndexOutOfBoundsException
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Version
5.7.3
Steps to Reproduce
- Android SDK 31
- call constructor Breadcrumb()
- I'm getting exception on production
java.lang.ArrayIndexOutOfBoundsException: length=0; index=1
at java.util.Locale.getDefault(Locale.java:928)
at java.util.Calendar.getInstance(Calendar.java:1639)
https://github.com/AndroidSDKSources/android-sdk-sources-for-api-level-31/blob/2c56b25f619575bea12f9c5520ed2259620084ac/java/util/Calendar.java#L1639
https://github.com/AndroidSDKSources/android-sdk-sources-for-api-level-31/blob/2c56b25f619575bea12f9c5520ed2259620084ac/java/util/Locale.java#L928
Expected Result
No exception
Actual Result
Exception
Routing to @getsentry/open-source for triage. ⏲️
Routing to @getsentry/team-mobile for triage. ⏲️
Hello @nienienienie I'm unable to reproduce the issue. Is this happening only on certain devices?
Yes, it's happened only once, but it did happen on production app installed from Play Store for device Android 11 / SM-A127F.
Hmm has the device been rooted? You can check on the event what the value of os.rooted says. Maybe someone's been messing with their device?
no, os.rooted is false
Hmm then I have no good explanation to give you at the moment - sorry.
Closing this as we don't know how to reproduce. If you can provide any more info, feel free to reopen so we can take another look.