summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
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-19 09:33:14 +0800
commita9eceb80ccdecf9d228249a6e077a4c761f3b859 (patch)
tree70e63c159ebfbf5b8e61375e0a8d471060cff724 /libs/androidfw/StringPool.cpp
parent6ab8172b6938c48864f4e9beef6a313d785824fe (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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions