diff options
author | Christopher Tate <ctate@google.com> | 2017-07-13 15:18:38 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2017-07-14 16:00:36 -0700 |
commit | 11179b40c6c2bed0a88fded3c0d89e56f2cce1cb (patch) | |
tree | fe465ee08588aba4610abe009ad23b7103d458ad /rs/java/android/renderscript/RenderScriptCacheDir.java | |
parent | 183f9ac26302e1f677df8d698c1f7c570bb22014 (diff) |
Don't crash when external storage is unmounted
In particular, don't NPE if an app calls getExternalFilesDir() while
external storage is unmounted. We were making assumptions about the
length of the array returned by the "tell me about all the external
locations" method, but in unmounted cases that array can be zero-sized.
(And similar for getObbDir() and getExternalCacheDir().)
Bug: 63604311
Test: manual
Change-Id: I4dec828161245047182e6fd39a0df10dd1681ba2
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptCacheDir.java')
0 files changed, 0 insertions, 0 deletions