diff options
author | Fabian Kozynski <kozynski@google.com> | 2019-11-06 17:23:17 -0500 |
---|---|---|
committer | Fabian Kozynski <kozynski@google.com> | 2019-11-06 18:08:00 -0500 |
commit | 213049e66f5a1c6d88fba82d7fda415c2776a9ea (patch) | |
tree | 1f9d792badfbaa52a5177257043974b9b0294ce3 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 98e9bbdb06d340d966f177173748c87ec93b3e11 (diff) |
Ensure that maps are only accessed in BG thread
If the maps are accessed from main thread (as well as bg thread), they
could be in an inconsistent state. In particular they could have nulls
for non-nullable types.
This CL asserts that createFilter is only called in BG thread. It also
makes sure that only non-nulls are passed to IntentFilter#addAction.
Test: atest UserBroadcastDispatcherTest
Fixes: 144039089
Change-Id: I58e66bc9a861c70c830fcbd4476d6dfc991c4ad0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions