summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Junyu Lai <junyulai@google.com> 2022-05-19 01:35:11 +0800
committer Junyu Lai <junyulai@google.com> 2022-05-24 10:31:09 +0800
commitad2be9ef85f76a882153988be392205a2e5b5e33 (patch)
tree38e538287bd7b5b20bbcbb6dedc30467a82af01f /api/api.go
parent807a7f37f096514ea5ed7cf0620f5e081e7ae424 (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 Merged-In: I4177a8229cc9db18d76cb90c54a1b8d12ef8d98f (pure cherry-picked from ag/18457684)
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions