diff options
author | Ahan Wu <ahanwu@google.com> | 2019-11-22 15:54:56 +0800 |
---|---|---|
committer | Ahan Wu <ahanwu@google.com> | 2020-02-18 17:18:46 +0800 |
commit | ec879fa0f2198aad607c9ef46e31d8f89c281059 (patch) | |
tree | df59394c6e25f6ab47e21e14a53d35e3262bfe88 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions