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

Commit 4252d66b authored by Chris Poultney's avatar Chris Poultney
Browse files

Fixes NPE for some live wallpapers

Fixes: 376924396
Flag: EXEMPT bugfix
Test: manually verified no crash
Change-Id: I98860ee3957e9bae4a0c3d8eaeb3ac4352c9461a
parent 47083cab
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2623,7 +2623,12 @@ public abstract class WallpaperService extends Service {

        private void doAttachEngine() {
            Trace.beginSection("WPMS.onCreateEngine");
            Engine engine = onCreateEngine(mDescription);
            Engine engine;
            if (mDescription != null) {
                engine = onCreateEngine(mDescription);
            } else {
                engine = onCreateEngine();
            }
            Trace.endSection();
            mEngine = engine;
            Trace.beginSection("WPMS.mConnection.attachEngine-" + mDisplayId);