commit | c9c7ebb464b4fdee664756880482956db512456a | [log] [tgz] |
---|---|---|
author | Ahan Wu <ahanwu@google.com> | Mon Feb 17 18:49:59 2020 +0800 |
committer | Ahan Wu <ahanwu@google.com> | Mon Feb 17 18:49:59 2020 +0800 |
tree | 8e6abcbee44b9735e2e9dbcdfe68b0fad67b1932 | |
parent | 10d16e52bc8b57f2b8bfa09ce118731130469749 [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: Idff558cbdbfa96df3154eb726a36645ee847c0bd