OSDN Git Service

Prevent Null Pointer Exception caused by race condition in AVRCP init
authorAjay Panicker <apanicke@google.com>
Tue, 11 Oct 2016 04:07:17 +0000 (21:07 -0700)
committerAjay Panicker <apanicke@google.com>
Tue, 11 Oct 2016 04:28:00 +0000 (04:28 +0000)
commit4a8273edcbd19725246ef08fa2e5c999ff5339e3
tree550f8c631d0fb343ec6cb0adec5b468d8ce5d06f
parent66ff95038baf87e01e706e5bcf30c3fdfdc3e34f
Prevent Null Pointer Exception caused by race condition in AVRCP init

The object |mMPList| could be null if AVRCP started handling messages before
the phone was unlocked. Now we always initialize the Media Player List.

Test: Manual testing
Bug: 32060313
Change-Id: I66cba51159586da8abe51297dba94a3e1dc1b067
src/com/android/bluetooth/avrcp/Avrcp.java