summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimationUtil.cpp
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2023-04-20 11:35:28 +0000
committer Nicolò Mazzucato <nicomazz@google.com> 2023-04-20 15:56:34 +0000
commit784a9ec804b9733e60f45f9afcd55a79ed9bca8f (patch)
treeea42fd0948e5989f1637690849dbfab410f7e5c3 /cmds/bootanimation/BootAnimationUtil.cpp
parentf54e5f90805b715c3acba0ddcab2923df042122e (diff)
Check for nullness in WallpaperService onDestroy
There are cases where the WallpaperService API is misused and an instance is created manually. In those cases, onCreate is not called as expected, but onDestroy is. As mBackgroundThread was being created `onCreate`, it ended up being null in onDestroy. Adding a null check to avoid breaking those places. Bug: 275361339 Test: androidx.wear.watchface.editor.EditorSessionTest#commitWithPreviewImage Change-Id: I89076da179493fa282f3e59895cfa4f4bfb6bdfc Merged-In: I89076da179493fa282f3e59895cfa4f4bfb6bdfc
Diffstat (limited to 'cmds/bootanimation/BootAnimationUtil.cpp')
0 files changed, 0 insertions, 0 deletions