summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceParser.cpp
diff options
context:
space:
mode:
author Syed Zaidi <zaidisyed@meta.com> 2024-06-29 02:15:38 -0500
committer Syed Zaidi <zaidisyed@meta.com> 2024-08-08 20:02:22 +0000
commit0e5d7184731a35c1057b5fa8799a0ac5d097792a (patch)
tree26659af4eee147393d0af56123e309fc2db54636 /tools/aapt2/ResourceParser.cpp
parente74cf64ecfeb5496ac69f9ce18b686d9e25ed7a6 (diff)
SystemCertificateSource: Mitigate NPE when checking updateable certs directory
The updateable conscrypt APEX certificate store located at /apex/com.android.conscrypt/cacert may be empty. Previously we would check whether or not the folder is empty by determinimg if the length of the returned list[] array was non-zero. However, when a directory is empty, a null value is returned instead of an empty array. We rectify that here by utilizing the helper function ArrayUtils.isEmpty() instead of manually checking the length. Flag: NONE Test: atest NetworkSecurityConfigTests Change-Id: I3557f75aa5a807623df6e978145c4378f06c625b Signed-off-by: Syed Zaidi <zaidisyed@meta.com>
Diffstat (limited to 'tools/aapt2/ResourceParser.cpp')
0 files changed, 0 insertions, 0 deletions