This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
Cannot capture event on android 5 (API 21): NullPointerException 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference #259
Labels
bug
Something isn't working
I run a test event on my project, it worked perfectly on Xiaomi MI 8 (API 28) but there is a problem with Nexus 5X (API 21). The detail log below
I debugged the project and found out that the root cause was in io.sentry.android.core.DefaultAndroidEventProcessor, the problem is getEternalFilesDirs() might return an array that contains a null object. There was no null checking here so I changed the logic a little bit, at line 666
This is just a hot fix, please be considered to fix this bug.
The text was updated successfully, but these errors were encountered: