Obsolete
Status Update
Comments
al...@android.com <al...@android.com>
sa...@google.com <sa...@google.com> #2
Is this not a bug in AGP? It doesnt feel like an androidx issue.
Description
We are seeing fare number of crashes when trying to access this method during the application startup, specifically on api 21 devices. Some of the device models seeing this on: GT-I9505, SM-N900, SGH-I337M, SM-G900F
Here is the stack trace:
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.storage.StorageVolume[] android.os.storage.IMountService.getVolumeList()' on a null object reference
at android.os.Environment.getStorageVolume(Environment.java:908)
at android.os.Environment.getExternalStorageState(Environment.java:758)
at android.os.Environment.getExternalStorageState(Environment.java:736)