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

Commit 0b0fab7a authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android Git Automerger
Browse files

am 83f7987a: am e9b1457c: am 0c0ec9d2: Merge "Prevent possible...

am 83f7987a: am e9b1457c: am 0c0ec9d2: Merge "Prevent possible NullPointerException when service is destroyed" into lmp-mr1-dev

* commit '83f7987a':
  Prevent possible NullPointerException when service is destroyed
parents e66c315a 83f7987a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -174,7 +174,8 @@ public abstract class ProfileService extends Service {
    @Override
    public void onDestroy() {
        if (DBG) log("Destroying service.");
        mAdapterService.removeProfile(this);
        if (mAdapterService != null) mAdapterService.removeProfile(this);

        if (mCleaningUp) {
            if (DBG) log("Cleanup already started... Skipping cleanup()...");
        } else {