diff options
author | Bill Lin <lbill@google.com> | 2018-08-23 19:24:07 +0800 |
---|---|---|
committer | Bill Lin <lbill@google.com> | 2018-08-23 23:06:17 +0800 |
commit | fe5a9edac0bf939b0b00aa8df826212112c97e58 (patch) | |
tree | ac195f976feb06dab2c5d653d60b907172f8b30f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 94390ecd1d7fb841d0e5479f95fe398045161de2 (diff) |
Unable to load BRs in SAF of FileSystemProvider
Files.listFiles() indicate if this abstract pathname does "not denote a directory"
It will returns null and cause "NullPointerException: Attempt to get length of null array"
in the queryChildDocuments()
Solution:
Use FileUtils.listFilesOrEmpty(parent) and check parent.isDirectory() to avoid NPE
Bug: 111565816
Test: Manual, trigger bugreport
rm -rf /data/user_de/0/com.android.shell/files/bugreports
launch Files/Bugreport observe there should not happen exception
Change-Id: I9d0835d562af7cf3c9bdaeab52cf41e86e3a8f62
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions