Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 232e250f authored by Presubmit Automerger Backend's avatar Presubmit Automerger Backend
Browse files

[automerge] Check for nullness in WallpaperService onDestroy 2p: 784a9ec8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22761496

Bug: 275361339
Change-Id: Ia62bcfe3c87d9f217069bfd359c17990edccf33e
Merged-In: I89076da179493fa282f3e59895cfa4f4bfb6bdfc
parents 26404c7c 784a9ec8
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2610,7 +2610,12 @@ public abstract class WallpaperService extends Service {
            mActiveEngines.get(i).detach();
        }
        mActiveEngines.clear();
        if (mBackgroundThread != null) {
            // onDestroy might be called without a previous onCreate if WallpaperService was
            // instantiated manually. While this is a misuse of the API, some things break
            // if here we don't take into consideration this scenario.
            mBackgroundThread.quitSafely();
        }
        Trace.endSection();
    }