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

Commit e382315f authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Avoid PluginManager NPE

Fixes: 128749863
Test: mp sysuig
Change-Id: Ia8ee414b0bb8bef40413edd59f41680ca2bbeaae
parent c7f498fe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -61,7 +61,9 @@ public class DozeService extends DreamService

    @Override
    public void onDestroy() {
        if (mPluginManager != null) {
            mPluginManager.removePluginListener(this);
        }
        super.onDestroy();
        mDozeMachine = null;
    }