commit | d4c84afff048cfe355b8d9fc1d61e62ac9efef09 | [log] [tgz] |
---|---|---|
author | Fabian Kozynski <kozynski@google.com> | Mon Oct 07 09:45:50 2019 -0400 |
committer | Fabian Kozynski <kozynski@google.com> | Mon Oct 07 09:59:22 2019 -0400 |
tree | 4d5e9ba36a898def6c785ef1a3db0944699801f3 | |
parent | 0cfa891678740efb4f8e432dbd39eb00738ef969 [diff] |
Fix race condition in CarrierTextController If WakefulnessLifcecycle dispatches to CarrierTextController after the CarrierTextCallback has been cleared but the observer has not been removed, there will be an NPE. This change guards the callback against dispatching to a null object. Test: build and unlock Fixes: 142130321 Change-Id: I5da46a0d5c8308870f2b67ae4622daf8e2d53b2f