summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2024-06-27 14:56:52 -0700
committer Lee Shombert <shombert@google.com> 2024-06-27 14:56:52 -0700
commit4b8fa0ead2530fe76a1a8364ea7875e7b26dfe76 (patch)
tree2fea4cec3ccb63d6654806a5445b30eb1e59c1de /libs/androidfw/StringPool.cpp
parentf4e6956283981cf9cbba4676d7cc69ce0f1c47b4 (diff)
Fix NPE in ApplicationExitInfoTest
ApplicationExitInfoTest discards ProcessList.sKillHandler so that a new one can be created. However, if a message is in flight on the handler when it is discarded, an NPE will result. KillHandler.handleMessage() no longer refers to the global sKillHandler, which may be null (the source of the NPE). handleMessage() instead refers to this, which can never be null. This has no impact to normal operation because sKillHandler is never altered. Test: atest * FrameworksMockingServicesTests:com.android.server.am * FrameworksServicesTests:com.android.server.am Flag: EXEMPT bugfix Bug: 349349773 Change-Id: Iaa333e314228c12fbfd794cef1a2ebf104e939fb
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions