Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4b8fa0ea authored by Lee Shombert's avatar Lee Shombert
Browse files

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
parent f4e69562
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment