commit | a9eceb80ccdecf9d228249a6e077a4c761f3b859 | [log] [tgz] |
---|---|---|
author | Junyu Lai <junyulai@google.com> | Thu May 19 01:35:11 2022 +0800 |
committer | Junyu Lai <junyulai@google.com> | Thu May 19 09:33:14 2022 +0800 |
tree | 70e63c159ebfbf5b8e61375e0a8d471060cff724 | |
parent | 6ab8172b6938c48864f4e9beef6a313d785824fe [diff] |
Add null check when list directory This change protect getPlatformFileListForPrefix from crashing when the directory exist but cannot be listed. This generally happens when the caller doesn't have enough permission to list. Test: atest CtsNetTestCases:android.net.cts.NetworkStatsManagerTest#testDataMigrationUtils Ignore-AOSP-First: in a topic with internal-only changes Bug: 230289468 Change-Id: I4177a8229cc9db18d76cb90c54a1b8d12ef8d98f