commit | ec879fa0f2198aad607c9ef46e31d8f89c281059 | [log] [tgz] |
---|---|---|
author | Ahan Wu <ahanwu@google.com> | Fri Nov 22 15:54:56 2019 +0800 |
committer | Ahan Wu <ahanwu@google.com> | Tue Feb 18 17:18:46 2020 +0800 |
tree | df59394c6e25f6ab47e21e14a53d35e3262bfe88 | |
parent | 2c4c1f1e6ddcaacb6729e243f465d9945fe21bfb [diff] |
Fix potential NPE while releasing worker thread of ImageWallpaper We nullify mWorker right in ImageWallpaper#destroy(), we might get NPE if postRender is invoked later. Thus, we add null check to avoid NPE. Bug: 144039509 Bug: 146167292 Test: atest com.android.systemui Test: atest CtsMultiUserHostTestCases Change-Id: I209673bdac7dcfee765006568583b5a9d6037b95 Merged-In: I243274af54538fc89268c448aa2c5a95f63c7ae3