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

Commit 1f93f123 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Prevent potential NPE when forcing stop package during boot"

parents b4ab2b67 270799ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6099,7 +6099,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
        public boolean onForceStopPackage(String packageName, boolean doit, boolean evenPersistent,
                int userId) {
            synchronized (mGlobalLock) {

                // In case if setWindowManager hasn't been called yet when booting.
                if (mRootWindowContainer == null) return false;
                return mRootWindowContainer.finishDisabledPackageActivities(packageName,
                        null /* filterByClasses */, doit, evenPersistent, userId,
                        // Only remove the activities without process because the activities with