summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2022-05-17 00:21:44 +0000
committer Mady Mellor <madym@google.com> 2022-05-17 00:21:44 +0000
commit185782ddbcd3c6e20010db05359e8ba2b2457950 (patch)
treefeaa70900bf4524b12f90bb5866321c33bea6866 /libs/androidfw/StringPool.cpp
parent8c88d0304106e8c3724aa3735456d0f77b7f1735 (diff)
Fix potential NPE & clean up some logic
- I had accidentally swapped the values in removeBubblesForUser in one place which could lead to a crash, it's actually simpler to just do the removal there since it's the parentUser that was removed so we can remove all of those entries. - In other places I've added a null check before performing the removeIf to be safe - Added a test checking bad input Bug: 232847471 Test: atest BubbleVolatileRepositoryTest Change-Id: I10f5b24e591db62edbb63ad40e588ba19ab621c1
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions